Notes is a simple, lightweight command-line program for managing notes directly from the terminal. It allows you to create, organize, and manage your notes by grouping them into categories, and all data is stored in files for persistent storage.
- Create groups for organizing your notes.
- Add notes inside specific groups.
- Select groups and notes for quick access.
- List all notes within a group.
- Delete specific notes or entire groups.
- Print the content of a selected note.
./notes [--help] [--version] [--new-note VAR] [--new-group VAR] [--select-group VAR] [--select-note VAR] [--select] [--list] [--delete-group VAR] [--delete-note VAR] [--print] [notes]...
Option/Command | Description |
---|---|
-h, --help |
Shows the help message and exits. |
-v, --version |
Prints version information and exits. |
-nn, --new-note VAR |
Creates a new note with the specified name. |
-ng, --new-group VAR |
Creates a new group with the specified name. |
-sg, --select-group VAR |
Selects the specified group for operations. |
-sn, --select-note VAR |
Selects the specified note from the selected group. |
-s, --select |
Automatically selects the group or note immediately after creation. |
-l, --list |
Lists all notes inside the selected group. |
-dg, --delete-group VAR |
Deletes the specified group. |
-dn, --delete-note VAR |
Deletes the specified note from the selected group. |
-p, --print |
Prints the content of the selected note. |
- Create a Group:
./notes --new-group "Work"
- Select the Group:
./notes --select-group "Work"
- Add a Note to the Group:
./notes --new-note "MeetingNotes"
- Select the Note:
./notes --select-note "MeetingNotes"
- List Notes in the Group:
./notes --list
- Print a Note's Content:
./notes --print
- Delete a Note:
./notes --delete-note "MeetingNotes"
- Delete a Group:
./notes --delete-group "Work"
- Write to a Note:
./notes hello, world!
To build the program from source, follow these steps:
-
Clone the repository:
git clone https://github.com/<your-username>/notes-cli.git cd notes-cli
-
Create a build directory:
mkdir build cd build
-
Configure the build:
cmake ..
-
Compile the program:
make
-
Run the program:
./notes --help
Contributions are welcome! Feel free to submit issues or pull requests for bug fixes, feature additions, or documentation updates.
This project is licensed under the MIT License. See the LICENSE
file for more details.