Pinjasaur / jrnl

Frictionless journaling from the CLI
1 stars 0 forks source link

Relativity: today, tomorrow, yesterday (plus viewing/editing) #1

Open Pinjasaur opened 3 years ago

Pinjasaur commented 3 years ago

Found out about the much more feature complete project of the same name 🙄 https://jrnl.sh/en/stable/

I like how the "today", "tomorrow", "yesterday" is handled. This could be useful for task management because I typically think of "what happened yesterday, what did I to today, and what can I do tomorrow?"

Perhaps more of a reach would be supporting a --edit/-e for the aforementioned keywords along with a YYYY/MM/DD.

Pinjasaur commented 1 year ago

date supports --date which would allow for yesterday or tomorrow trivially. Unfortunately, it's only only available via GNU date.

https://www.cyberciti.biz/tips/linux-unix-get-yesterdays-tomorrows-date.html

Pinjasaur commented 4 months ago

A workaround would be refactoring this to use nix-shell in the shebang to e.g. reproducibly use GNU date.

https://nix.dev/tutorials/first-steps/reproducible-scripts