A simple and lightweight CLI notes app.
- Read Notes: View the latest, oldest, or all notes with optional tag filtering.
- Add Notes: Quickly add new notes with a tag.
- Edit Notes: Modify the content or tag of an existing note.
- Delete Notes: Remove specific notes or delete all notes at once.
- Search Notes: Find notes containing a specific keyword.
- Export Notes: Export all notes to an HTML file for easy viewing.
-
Clone the repository:
git clone https://github.com/stigsec/cli-notes.git cd cli-notes
-
Edit the notesPath variable in both python scripts:
notesPath = #Your path to a notes.json file, eg. C:\\Personal\\notes.json
python main.py add Your note here --tag your-tag
- Read all notes:
python main.py read
- Read the last 5 notes:
python main.py read 5
- Read the first 5 notes:
python main.py read -5
- Read notes filtered by tag:
python main.py read --tag your-tag
- Delete all notes:
python main.py del
- Delete a specific note:
python main.py delnote <note-id>
- Edit note content:
python main.py edit <note-id> New content here
- Edit note tag:
python main.py edittag <note-id> new-tag
python main.py search keyword
python main.py export <path-to-export-html>
main.py
: Main script for interacting with the CLI.notes_helper.py
: Helper functions for managing notes.notes.json
: JSON file where notes are stored.
You can modify the notesPath
directly in the source code (required both in main.py and notes_helper.py).
- Note pinning
- CLI color coding
- Notes encryption
- Interactive shell mode
- Statistics
- More export options
- Backup
- Customization options
This project is licensed under the GNU General Public License v3.0. See the LICENSE file for more details.
Developed by stigsec