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:
parent
cfddecba60
commit
4b4afc68f3
1 changed files with 7 additions and 1 deletions
|
@ -4,8 +4,14 @@ taskbin = task
|
||||||
path_ext = /usr/share/taskopen/scripts
|
path_ext = /usr/share/taskopen/scripts
|
||||||
|
|
||||||
[Actions]
|
[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"
|
notes.command = "$EDITOR ${XDG_DATA_HOME:-~/.local/share}/task/notes/$UUID.md"
|
||||||
|
|
||||||
|
links.regex = "^https?://"
|
||||||
|
links.command = "xdg-open $FILE"
|
||||||
|
|
||||||
[CLI]
|
[CLI]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue