* [PATCH] Added some arguments autocompletion to _todo.sh.
@ 2017-08-28 17:24 _RuRo_
2017-08-29 1:59 ` Daniel Shahaf
0 siblings, 1 reply; 2+ messages in thread
From: _RuRo_ @ 2017-08-28 17:24 UTC (permalink / raw)
To: zsh-workers
The information for these arguments can also be found in `todo.sh help`.
---
Completion/Unix/Command/_todo.sh | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/Completion/Unix/Command/_todo.sh b/Completion/Unix/Command/_todo.sh
index eb0be55e5..267262e25 100644
--- a/Completion/Unix/Command/_todo.sh
+++ b/Completion/Unix/Command/_todo.sh
@@ -17,12 +17,24 @@ local -a cmdlist itemlist match mbegin mend
integer NORMARG
_arguments -s -n : \
+ '-@[hide context names]' \
+ '-\+[hide project names]' \
+ '-c[color mode]' \
'-d[alternate config file]:config file:_files' \
'-f[force, no confirmation]' \
'-h[display help]' \
'-p[plain mode, no colours]' \
+ '-P[hide priority labels]' \
+ '-a[dont auto-archive tasks when done]' \
+ '-A[auto-archive tasks when done]' \
+ '-n[automatically remove blank lines]' \
+ '-N[preserve line numbers]' \
+ '-t[add current date to task on creation]' \
+ '-T[dont add current date to task]' \
'-v[verbose mode, confirmation messages]' \
+ '-vv[extra verbose (debug)]' \
'-V[display version etc.]' \
+ '-x[disable final filter]' \
'1:command:->commands' \
'*:arguments:->arguments' && return 0
--
_RuRo_ (Андрей Стоцкий)
ruro.ruro@ya.ru
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Added some arguments autocompletion to _todo.sh.
2017-08-28 17:24 [PATCH] Added some arguments autocompletion to _todo.sh _RuRo_
@ 2017-08-29 1:59 ` Daniel Shahaf
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Shahaf @ 2017-08-29 1:59 UTC (permalink / raw)
To: _RuRo_, zsh-workers
_RuRo_ wrote on Mon, 28 Aug 2017 20:24 +0300:
> +++ b/Completion/Unix/Command/_todo.sh
> @@ -17,12 +17,24 @@ local -a cmdlist itemlist match mbegin mend
> _arguments -s -n : \
> + '-@[hide context names]' \
According to the help output you referenced, this option can be
specified twice. This could be implemented by prefixing the -@ with
a *. I'm not sure if there is an easy way to allow the option to be
completed either once or twice but not more.
> + '-\+[hide project names]' \
Likewise this option (and others).
> + '-a[dont auto-archive tasks when done]' \
I've corrected the spelling of "don't" and committed the patch. Thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-08-29 1:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-28 17:24 [PATCH] Added some arguments autocompletion to _todo.sh _RuRo_
2017-08-29 1:59 ` Daniel Shahaf
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).