kkroesch / note

Command-line tool to quickly create a note. Inspired by Hacknet.
MIT License
1 stars 0 forks source link

Note CLI Program

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.

Features

Usage

To run the program, ensure you have Rust installed, clone this repository, and use cargo to build and run the project.

Build and Run

# Clone this repository
just install

Create Notes

  1. Start the program:

    note
  2. 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.

Installation with Justfile

You can use just install to build and install the program to ~/.local/bin.

Environment Variables

Example

# Set the NOTES_DIR environment variable
export NOTES_DIR=~/my_notes

Dependencies