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:
parent
97114d74fb
commit
d10db1be7d
3 changed files with 2 additions and 5 deletions
|
@ -16,9 +16,6 @@ t() {
|
||||||
# works for now. from here: https://unix.stackexchange.com/a/72564/414758
|
# works for now. from here: https://unix.stackexchange.com/a/72564/414758
|
||||||
if exist task && [ "$(ps -p $$ -o comm --no-headers)" = "zsh" ]; then compdef t=task; fi
|
if exist task && [ "$(ps -p $$ -o comm --no-headers)" = "zsh" ]; then compdef t=task; fi
|
||||||
|
|
||||||
# Make taskopen XDG conforming. If changing here, also change in taskrc alias.
|
|
||||||
alias taskopen='taskopen --config=${XDG_CONFIG_HOME:-~/.config}/task/taskopenrc'
|
|
||||||
|
|
||||||
alias ta="task add"
|
alias ta="task add"
|
||||||
alias tal="task log"
|
alias tal="task log"
|
||||||
alias tan="task annotate"
|
alias tan="task annotate"
|
||||||
|
|
|
@ -7,7 +7,7 @@ path_ext = /usr/share/taskopen/scripts
|
||||||
note_custom_ext.regex = "^Note\\.?(.*)?"
|
note_custom_ext.regex = "^Note\\.?(.*)?"
|
||||||
note_custom_ext.command = "$EDITOR ${XDG_DATA_HOME:-$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:-$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?://"
|
||||||
|
|
|
@ -23,7 +23,7 @@ weekstart=monday
|
||||||
|
|
||||||
# Make daily burndown default alias
|
# Make daily burndown default alias
|
||||||
alias.burndown=burndown.daily
|
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
|
# Sort the columns a little differently
|
||||||
active.indicator=>
|
active.indicator=>
|
||||||
|
|
Loading…
Reference in a new issue