This repository contains a simple C-based command-line tool to organize notes using metadata such as tags and arguments. The program allows users to create new notes, save them, and organize them into specific folders based on tags and arguments. This tool helps you easily classify and store your notes, making it a lightweight and useful addition to your workflow.
- Create Notes: Create new notes using a predefined template.
- Save Notes: Save the notes into specific folders organized by tags and arguments.
- Metadata Support: Add metadata (tags, arguments) to your notes for better classification.
-
Clone the repository:
git clone https://github.com/ilBuso/notes.git
-
Navigate into the project directory:
cd notes
-
Compile the C code using
make
:make
-
Run the executable:
./notes [flags] [file_name]
The program accepts two main flags:
- Command:
./notes -n [file_name]
- This command creates a new note by using the
note-template.md
file located in the~/.config/
directory. The note will be initialized with metadata fields such asTags
,Arguments
, andDate
.
- Command:
./notes -s [file_name]
- This command saves the note into appropriate directories based on the provided metadata (tags and arguments). It creates folders under
./note/tags/
and./note/arguments/
as required and moves the note file to the correct location.
./note/tags/
: Contains directories for each tag. Each note with the corresponding tag is saved in the related folder../note/arguments/
: Stores notes categorized by their arguments../.config/note-template.md
: Template used when creating a new note.
-
Create a new note:
./notes -n my_note.md
-
Save the note with the appropriate tags and arguments:
./notes -s my_note.md
This project is licensed under the MIT License. See the LICENSE
file for more details.