One week, one file; to keep yourself in the loop.
Add the following to your .bash_profile
or .zshrc
:
source path/to/did/did.sh
Files and headers are created automatically on the appropriate times.
Usage:
did [cmd]
Commands:
(no command) : opens the current week-file en editor
ls : lists all week files
grep <query> : shows entries from newest to oldest, optionally filtering by query
DID_PATH
defaults to$HOME/.did
DID_EXT
defaults tomd
(markdown)DID_EDITOR
defaults to$VISUAL
DID_EDITOR_PARAMS
empty by default
E.g. set DID_EDITOR_PARAMS
to normal Go
to have vim go to the end of the
document when opening the journal.
Get did.vim.
This is not my idea. I found an article describing this approach. However, I
cannot find it after my laptop was stolen. Please let me know if you think
you've found it (the article on the laptop).
UPDATE: Found it. Here is the article that introduced the weekly journal to me.
The original script wasis bash based. I've replaced the most complicated
parts with small python helpers.