A CLI program for creating notes. The user enters lines, which are saved to a file after entering a single dot (".") on the input line. The file contains a YAML-like header with the title (first line of input), date (current date in ISO format), and author ($USER). The file is saved in the directory $NOTES_DIR/drafts
.
$NOTES_DIR
environment variable.To run the program, ensure you have Rust installed, clone this repository, and use cargo
to build and run the project.
# Clone this repository
just install
Start the program:
note
Enter your notes:
# Title of the note
> This is the first line of the note.
> This is the second line.
> .
After entering a single dot (".") on a line, the note will be saved.
You can use just install
to build and install the program to ~/.local/bin
.
NOTES_DIR
: The directory where notes are saved. Defaults to the user's home directory if not set.# Set the NOTES_DIR environment variable
export NOTES_DIR=~/my_notes
dirs
: Access to directories (e.g., home directory).chrono
: Working with date and time.ansi_term
: Colored terminal output.