A desktop note taking application, that allows you to quickly describe the current day.
Go to file
Ivan Reshetnikov f77bc126ac
Add EditorConfig
2023-11-06 00:31:48 +05:00
.editorconfig Add EditorConfig 2023-11-06 00:31:48 +05:00
histd.sh Search for the latest file by name, not by modification date 2023-03-13 00:33:11 +05:00
license.md License: update year 2023-11-06 00:11:05 +05:00
readme.md Add project status 2023-11-06 00:27:30 +05:00

readme.md

How I spent this day

A simple but useful personal diary application.

The sole purpose of this application is to quickly create a file and open it in a text editor so that I can take a note before I lose my desire. Notes can be found in the ~/.local/share/histd directory.

tree ~/.local/share/histd
# /home/user/.local/share/histd
# └── 2022
#     └── 08
#         ├── 18.md
#         └── 19.md

Usage

Mark this script as executable:

chmod +x histd.sh

Now you can create your first note:

./histd.sh

This command can be run as many times as you want, it will open the same file until the day is over.

You can open the last note with the command:

./histd.sh last

Editor configuration

When opening a text editor, the program checks the value of the EDITOR environment variable.

If you want to use a different editor, edit the ~/.bashrc file (if you are using bash):

export EDITOR=nano

Don't forget to start a new session or execute the following command:

source ~/.bashrc

Commands

Command Description Dependencies
Create a new note file if it does not exist and open it in a text editor.
last Open the most recently created note.
backup Creates an archive with all notes. tar, xz
merge Combine all notes into one file. Each note is preceded by a file name.
list Displays a tree of all notes. tree
help Show usage information.

Project status

The project is completed, but not abandoned. Improvements are welcome.