mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Scripts
- added conjunctions to zsh tab completion
This commit is contained in:
parent
db279ee237
commit
b018042130
1 changed files with 10 additions and 0 deletions
|
@ -47,6 +47,13 @@ _task_modifiers=(
|
|||
'word' \
|
||||
'noword'
|
||||
)
|
||||
_task_conjunctions=(
|
||||
'and' \
|
||||
'or' \
|
||||
'xor' \
|
||||
'\)'
|
||||
'\('
|
||||
)
|
||||
_task_cmds=($(task _commands))
|
||||
_task_zshcmds=( ${(f)"$(task _zshcommands)"} )
|
||||
|
||||
|
@ -175,6 +182,9 @@ _regex_arguments _task_attributes "${args[@]}"
|
|||
(( $+functions[_task_filter] )) ||
|
||||
_task_filter() {
|
||||
_task_attributes "$@"
|
||||
|
||||
# TODO complete conjunctions only if the previous word is a filter expression, i.e. attribute, ID, any non-command
|
||||
_describe -t default 'task conjunctions' _task_conjunctions
|
||||
}
|
||||
|
||||
# merge completion
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue