Skip to content

Instantly share code, notes, and snippets.

@hunterjackson
Created November 20, 2024 14:50
Show Gist options
  • Save hunterjackson/d63e71583994a5ab9856a7d741c539ee to your computer and use it in GitHub Desktop.
Save hunterjackson/d63e71583994a5ab9856a7d741c539ee to your computer and use it in GitHub Desktop.
Taskwarrior Notes
# append this to your ~/.taskrc
uda.note.type=date
uda.note.label=Note
alias.note=execute "${HOME}/.task/hooks/note"uda.note.type=date
#!/bin/env bash
NOTE_DIR=${HOME}/.task/notes
mkdir -p notes/
if [[ $# -eq 1 ]]; then
uuid=$(task _get $1.uuid)
note="${NOTE_DIR}/${uuid}.md"
vim $note || exit 1
task ${uuid} mod note:$(date --iso-8601=seconds) >/dev/null
else
vim ${NOTE_DIR}/buffer
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment