Skip to content

πŸ“ Terminal note taking app. Written in rust!

Notifications You must be signed in to change notification settings

renanbrayner/rusty-notes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

19 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

RUSTY NOTES

A simple terminal note taking program. Written in Rust πŸ¦€

Functionality

The program works by creating a directory for your notes with the following structure: ~/notes/year/month/day and appending a line of text you write to the end of the file or opening the file in your terminal text editor. A normal notes folder will look like this

πŸ“ notes
β”œβ”€β”€ πŸ“ 2021
β”‚  └── πŸ“ 12
β”‚     └── πŸ“„ 15
└── πŸ“ 2022
   β”œβ”€β”€ πŸ“ 01
   β”‚  β”œβ”€β”€ πŸ“„ 05
   β”‚  β”œβ”€β”€ πŸ“„ 08
   β”‚  β”œβ”€β”€ πŸ“„ 11
   β”‚  β”œβ”€β”€ πŸ“„ 18
   β”‚  β”œβ”€β”€ πŸ“„ 25
   β”‚  └── πŸ“„ 29
   β”œβ”€β”€ πŸ“ 02
   β”‚  β”œβ”€β”€ πŸ“„ 01
   β”‚  β”œβ”€β”€ πŸ“„ 04
   β”‚  β”œβ”€β”€ πŸ“„ 08
   β”‚  β”œβ”€β”€ πŸ“„ 22
   β”‚  β”œβ”€β”€ πŸ“„ 25
   β”‚  └── πŸ“„ 27
   └── πŸ“ 03
      β”œβ”€β”€ πŸ“„ 02
      β”œβ”€β”€ πŸ“„ 05
      β”œβ”€β”€ πŸ“„ 06
      β”œβ”€β”€ πŸ“„ 21
      β”œβ”€β”€ πŸ“„ 23
      └── πŸ“„ 31

How to use

There are 2 main ways of using this program:

  1. appending a line of text into the note file
  2. opening it in your terminal editor

To edit the notes with your terminal editor simply call the program notes without passing any arguments. To append a line of text to the notes file just write the line after the command like this: notes this line of text will be appended to the end of the file

Configuration

The configuration file is found in $XDG_CONFIG_HOME/notes/config.toml after running the program for the first time, the current options are: editor, directory_name and filetype. By default the editor used is the one found in your $EDITOR variable, the directory name used is notes and no file extension is set.

Exemple config

editor = "nvim"
directory_name = "journal"
filetype = ".md"

Installation

Running the following commands in order should work for most Linux distros

  1. Install rust curl https://sh.rustup.rs -sSf | sh
  2. Clone this repo git clone https://github.com/renanbrayner/rusty-notes.git
  3. Enter into the repo folder and build source code cd rusty-notes && cargo build -r
  4. Move the binary into ~/.local/bin mv target/release/notes ~/.local/bin
  5. Done! Just run notes and start using the program

About

πŸ“ Terminal note taking app. Written in rust!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages