taskwarrior: Fix taskopen script

Fixed taskopen script not opening the correct numbered task
when passed one (either on the command line with `to <id>`
or through taskwarrior with `t <id> open`).
Now it does directly open the correct note.
This commit is contained in:
Marty Oehme 2023-12-30 21:29:21 +01:00
parent 97114d74fb
commit d10db1be7d
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A
3 changed files with 2 additions and 5 deletions

View file

@ -7,7 +7,7 @@ path_ext = /usr/share/taskopen/scripts
note_custom_ext.regex = "^Note\\.?(.*)?"
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:-$HOME/.local/share}/task/notes/$UUID.md"
links.regex = "^https?://"

View file

@ -23,7 +23,7 @@ weekstart=monday
# Make daily burndown default alias
alias.burndown=burndown.daily
alias.open=exec taskopen "--config=${XDG_CONFIG_HOME:-$HOME/.config}/task/taskopenrc"
alias.open=exec taskopen
# Sort the columns a little differently
active.indicator=>