taskopen: Fix expansion using environment var

This commit is contained in:
Marty Oehme 2023-01-10 00:14:40 +01:00
parent 6cf34a5aee
commit dac7e7deee
Signed by: Marty
GPG Key ID: 73BA40D5AFAF49C9
1 changed files with 2 additions and 2 deletions

View File

@ -5,10 +5,10 @@ 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"
note_custom_ext.command = "$EDITOR ${XDG_DATA_HOME:-$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:-$HOME/.local/share}/task/notes/$UUID.md"
links.regex = "^https?://"
links.command = "xdg-open $FILE"