#progress #editor #gitlab #directory #editing #git #com-remipassmoilesel-notes

nightly bin+lib notes

A simple tool for taking notes. Work in progress. See: https://gitlab.com/remipassmoilesel/notes

20 releases

0.2.108 Sep 1, 2020
0.2.107 Sep 1, 2020
0.2.106 Aug 31, 2020
0.1.9 Aug 23, 2020
0.1.5 Dec 12, 2019

#2709 in Command line utilities

35 downloads per month

GPL-3.0-or-later

90KB
2K SLoC

Notes

Pipeline status coverage report

A simple tool for taking notes. notes helps you to keep your notes in a clean directory structure, with Git as versioning.

Work in progress. Only tested on Arch Linux.

Prerequisites:

  • Git
  • $EDITOR variable set with the path of your favorite editor. Your editor must block while editing.

Main repository is hosted on Gitlab: https://gitlab.com/remipassmoilesel/notes.git

Usage

$ notes help

Notes 🚀 🚀 🚀

███╗   ██╗ ██████╗ ████████╗███████╗███████╗
████╗  ██║██╔═══██╗╚══██╔══╝██╔════╝██╔════╝
██╔██╗ ██║██║   ██║   ██║   █████╗  ███████╗
██║╚██╗██║██║   ██║   ██║   ██╔══╝  ╚════██║
██║ ╚████║╚██████╔╝   ██║   ███████╗███████║
╚═╝  ╚═══╝ ╚═════╝    ╚═╝   ╚══════╝╚══════╝

    Clean all the brains !

Usage:

  notes new <title>         Create a new note.
  notes n <title>             -> All commands have a short alias
  notes search <needle>     Search for a note. You can use regex !
  notes s <needle>
  notes edit <id>           Edit specified note
  notes e <id>
  notes delete <id>         Delete specified note
  notes d <id>
  notes list                List all notes
  notes l
  notes push                Push notes repository (Git based)
  notes p
  notes pull                Pull notes repository (Git based)
  notes ll
  notes help                Show this help
  notes h

Options:
  -h --help     Show this screen.
  --version     Show version.

Examples:

    $ notes new my-awesome-idea
    $ notes list
    $ notes edit 123
    $ notes delete 123

With shortcuts:

    $ notes n my-awesome-idea
    $ notes e 123
    $ notes d 123

See https://gitlab.com/remipassmoilesel/notes

Build

Install Rust nightly and tools:

$ rustup install nightly
$ rustup default nightly
$ cargo install cargo-tarpaulin

Build:

$ cargo build --release

Unit testing:

$ cargo test --lib

Integration tests need setup:

$ ./_test.sh

Dependencies

~4–14MB
~138K SLoC