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`.
This commit is contained in:
Marty Oehme 2022-12-08 12:59:07 +01:00
parent cfddecba60
commit 4b4afc68f3
Signed by: Marty
GPG Key ID: 73BA40D5AFAF49C9
1 changed files with 7 additions and 1 deletions

View File

@ -4,8 +4,14 @@ taskbin = task
path_ext = /usr/share/taskopen/scripts
[Actions]
notes.regex = "Note"
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]