# Notes
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](https://gitlab.com/remipassmoilesel/notes.git)
## Usage
$ notes help
Notes 🚀 🚀 🚀
███╗ ██╗ ██████╗ ████████╗███████╗███████╗
████╗ ██║██╔═══██╗╚══██╔══╝██╔════╝██╔════╝
██╔██╗ ██║██║ ██║ ██║ █████╗ ███████╗
██║╚██╗██║██║ ██║ ██║ ██╔══╝ ╚════██║
██║ ╚████║╚██████╔╝ ██║ ███████╗███████║
╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚══════╝╚══════╝
Clean all the brains !
Usage:
notes new
Create a new note.
notes n -> All commands have a short alias
notes search Search for a note. You can use regex !
notes s
notes edit Edit specified note
notes e
notes delete Delete specified note
notes d
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