dotfiles/taskwarrior/.config/task/taskopenrc
Marty Oehme 4b4afc68f3
task: Add taskopen action for links and note ext
Custom note extensions can be set and opened through annotating a task
with `Note.ext` instead of just the usual `Note` - the extension will
automatically be opened.

Additionally, tasks annotated with links can now have their links opened
through xdg-open with `to`.
2022-12-08 14:10:10 +01:00

17 lines
397 B
Text

[General]
EDITOR = nvim
taskbin = task
path_ext = /usr/share/taskopen/scripts
[Actions]
note_custom_ext.regex = "^Note\\.(.*)"
note_custom_ext.command = "$EDITOR ${XDG_DATA_HOME:-~/.local/share}/task/notes/$UUID.$LAST_MATCH"
notes.regex = "^Note"
notes.command = "$EDITOR ${XDG_DATA_HOME:-~/.local/share}/task/notes/$UUID.md"
links.regex = "^https?://"
links.command = "xdg-open $FILE"
[CLI]