Skip to content

matthiasbeyer/diary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLI Diary

This is a text based diary, inspired by khal. Diary entries are stored in raw text. You may say C & ncurses are old, I say paper is older..

Diary Demo

Usage

  1. Set the EDITOR environment variable to your favourite text editor:

    export EDITOR=vim
    
  2. Compile (requires ncurses):

    make
    
  3. Install the binary (optional):

    sudo make install
    

    By default this will copy the binary to /usr/local/bin. To use a different path prefix, type sudo make --PREFIX=/usr install to use /usr/bin for example. You can uninstall diary with sudo make uninstall.

  4. Run the diary, with the folder for the text files as first argument:

    diary ~/.diary
    

    Instead of this, you can also set the environment variable DIARY_DIR to the desired directory. If both an argument and the environment variable are given, the argument takes precedence.

    The text files in this folder will be named 'yyyy-mm-dd'.

  5. Use the keypad or VIM-like shortcuts to move between dates:

    e, Enter  Edit the current entry
    d, x      Delete/remove current entry
    t         Jump to today
    s         Jump to specific day
    
    j, down   go forward by 1 week
    k, up     go backward by 1 week
    h, left   go left by 1 day
    l, right  go right by 1 day
    
    g         go to the first date
    G         go to the last date
    
    J         Go forward by 1 month
    K         Go backward by 1 month
    

About

Simple CLI diary

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published