A simple terminal note taking program. Written in Rust π¦
The program works by creating a directory for your notes with the following structure: ~/notes/year/month/day and appending a line of text you write to the end of the file or opening the file in your terminal text editor. A normal notes folder will look like this
π notes
βββ π 2021
β βββ π 12
β βββ π 15
βββ π 2022
βββ π 01
β βββ π 05
β βββ π 08
β βββ π 11
β βββ π 18
β βββ π 25
β βββ π 29
βββ π 02
β βββ π 01
β βββ π 04
β βββ π 08
β βββ π 22
β βββ π 25
β βββ π 27
βββ π 03
βββ π 02
βββ π 05
βββ π 06
βββ π 21
βββ π 23
βββ π 31
There are 2 main ways of using this program:
- appending a line of text into the note file
- opening it in your terminal editor
To edit the notes with your terminal editor simply call the program notes without passing any arguments.
To append a line of text to the notes file just write the line after the command like this: notes this line of text will be appended to the end of the file
The configuration file is found in $XDG_CONFIG_HOME/notes/config.toml after running the program for the first time, the current options are: editor, directory_name and filetype.
By default the editor used is the one found in your $EDITOR variable, the directory name used is notes and no file extension is set.
editor = "nvim"
directory_name = "journal"
filetype = ".md"Running the following commands in order should work for most Linux distros
- Install rust
curl https://sh.rustup.rs -sSf | sh - Clone this repo
git clone https://github.com/renanbrayner/rusty-notes.git - Enter into the repo folder and build source code
cd rusty-notes && cargo build -r - Move the binary into ~/.local/bin
mv target/release/notes ~/.local/bin - Done! Just run
notesand start using the program