Skip to content

ilBuso/notes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

af4ebdd · Sep 7, 2024

History

13 Commits
Sep 4, 2024
Sep 5, 2024
Aug 12, 2024
Sep 7, 2024
Sep 7, 2024
Sep 7, 2024

Repository files navigation

Notes - by ilBuso

TOC

Description

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.

Features

  • 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.

Installation

  1. Clone the repository:

    git clone https://github.com/ilBuso/notes.git
  2. Navigate into the project directory:

    cd notes
  3. Compile the C code using make:

    make
  4. Run the executable:

    ./notes [flags] [file_name]

Usage

The program accepts two main flags:

1. Create a New Note

  • 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 as Tags, Arguments, and Date.

2. Save a Note

  • 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.

Folder Structure

  • ./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.

Example

  1. Create a new note:

    ./notes -n my_note.md
  2. Save the note with the appropriate tags and arguments:

    ./notes -s my_note.md

License

This project is licensed under the MIT License. See the LICENSE file for more details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published