apatel762 / home-infra

A repository containing all of the setup for my home infra (e.g. my laptop & soon, my server)
GNU Affero General Public License v3.0
0 stars 0 forks source link

Migrate notes.sh into an `nb` plugin #30

Closed apatel762 closed 2 years ago

apatel762 commented 2 years ago

Convert the whole script into an nb plugin so that I don't have to have a reference to it in my .bashrc.

And then while I'm at it, improve the journal workflow:

Ideas

apatel762 commented 2 years ago

call it nb journal

with no parameters it will just open today's note, otherwise it can open notes based on the parameter (by passing the param directly to the GNU date command

Foam uses the below snippets as a shorthand reference to certain dates (see daily notes):

Snippet Date
/tomorrow tomorrow
/yesterday yesterday
/monday next Monday
/+1d tomorrow
/-3d 3 days ago
/+1w in a week
/-1m one month ago
/+1y in one year

I think supporting something like this would be good enough

apatel762 commented 2 years ago

as for the notational velocity style of searching for + opening notes, could make a plugin that you call by running nb fzf like issue 102 in the nb repo

also, completely unrelated but you can jump between files in vim using gf! I didn't know that. Source: https://stackoverflow.com/questions/26919972/follow-link-in-vim-with-markdown-syntax (the vim docs are probably a better source but cba to look through them right now)