Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Pinjasaur opened this issue Feb 25, 2021 · 2 comments
Open

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

Pinjasaur opened this issue Feb 25, 2021 · 2 comments

Comments

@Pinjasaur
Copy link
Owner

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
Copy link
Owner Author

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
Copy link
Owner Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant