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

View file

@ -5,10 +5,10 @@ path_ext = /usr/share/taskopen/scripts
[Actions] [Actions]
note_custom_ext.regex = "^Note\\.(.*)" 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.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.regex = "^https?://"
links.command = "xdg-open $FILE" links.command = "xdg-open $FILE"