>2. One command away from my editor(I only use desktop for taking notes), also synced to my dropbox in case
One can add a function in rc files to commit and push to version control, if the `.task` directory is a git repo:
function tupd() {
git -C ~/.task commit -a -m "Update tasks $(whoami)@$(hostname)"
git -C ~/.task push
}
TaskWarrior has hooks[0] to execute arbitrary scripts (on-launch, on-exit, on-add, on-modify) so one can write a script that takes accepts JSON input.I also have a transformer script that generates markdown from a specific project's tasks and annotations, with headings and lists, and commit to a project's wiki that is a git repository, and push the changes.
I had an alias named `note`:
alias note='vi +star +'\''normal Go'\'' +'\''r!date +\%F\ \%T'\'' ~/workspace/notes/notes.md +'\''normal Go'\'' +'\''normal Go'\'
And also one named `lesson`, where I write down mistakes I make, from arriving late (meaning only arriving 15 minutes in advance) to a meeting to some consequence of an assumption, to removing one line of code I thought wasn't useful causing a bug.It's been a long time I haven't updated it. Not because I'm perfect, but because I'm not.