nora's notes: trivial bash scripts to make notetaking easy
Go to file
Leonora Tindall b6a29a0dca pluralized aliases 2024-08-31 18:37:08 -05:00
README pluralized aliases 2024-08-31 18:37:08 -05:00
dnote pushd and popd for ctrlp.vim 2024-08-29 14:36:19 -05:00
dnotes pluralized aliases 2024-08-31 18:37:08 -05:00
gnote pushd and popd for ctrlp.vim 2024-08-29 14:36:19 -05:00
gnotes pluralized aliases 2024-08-31 18:37:08 -05:00
mnote pushd and popd for ctrlp.vim 2024-08-29 14:36:19 -05:00
mnotes pluralized aliases 2024-08-31 18:37:08 -05:00
nnote Change terminal title when editing a note 2024-08-31 18:05:29 -05:00
nnotes pluralized aliases 2024-08-31 18:37:08 -05:00
ynote pushd and popd for ctrlp.vim 2024-08-29 14:36:19 -05:00
ynotes pluralized aliases 2024-08-31 18:37:08 -05:00

README

nnote: nora's notes
----

provides a script, nnote, to quickly make notes in a simple hierarchy
provides eight quick aliases: dnote[s], mnote[s], ynote[s], gnote[s]

installation
----
optionally, set $NOTESDIR.
if you don't do this, nnote will use ~/Notes

then, install the scripts
option 1: clone this repo to ~$NOTESDIR/bin
          then symlink dnote, mnote, ynote, gnote to your PATH like

            $ ln -s "$NOTESDIR/bin/dnote" "$HOME/.bin/dnote"

option 2: clone this repo (wherever you like) and either
          a) add that directory to your PATH, or
          b) copy or symlink these scripts into your PATH

usage
----

when you call nnote, you give it a note type (daily/monthly/yearly/global)
and, optionally, a note name, which can include spaces with or without quoting.

nnote will:
- create the appropriate note directory,
- make the note if it doesn't exist,
- cd into $NOTESDIR so your CtrlP.vim or whatever will work,
- and then open the note in $EDITOR

when the editor closes it'll cd back to where you were.

aliases are provided:
- dnote for daily notes
- mnote for monthly
- ynote for yearly
- gnote for global

pluralized aliases (dnotes, mnotes, ynotes, gnotes) are provided to open an
editor in the appropriate directory. this is great if you use an editor with
a directory-based quick find function, like CtrlP.vim or Telescope in Neovim

you can enter different names but by default those are the note names too
the file hierarchy is very simple, for instance:
- $NOTESDIR
  - bin/
    - [scripts]
  - [global notes]
  - 2024/
    - [yearly notes]
    - 08/
      - [monthly notes]
      - 28/
        - [daily notes]