about summary refs log tree commit diff
path: root/Completion/Unix/Command/_mh
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2015-08-12 18:02:57 +0200
committerOliver Kiddle <opk@zsh.org>2015-08-12 18:06:03 +0200
commitcf77e28a3fe46035faf6c1815cb7dbc92207e5f4 (patch)
tree25a7b63b3697ffd3b06a8b9954230b0cc69495db /Completion/Unix/Command/_mh
parent4f509c6201968e1e283dbcf34a40a4cb2dea4267 (diff)
downloadzsh-cf77e28a3fe46035faf6c1815cb7dbc92207e5f4.tar.gz
zsh-cf77e28a3fe46035faf6c1815cb7dbc92207e5f4.tar.xz
zsh-cf77e28a3fe46035faf6c1815cb7dbc92207e5f4.zip
36127: assorted minor completion function changes
Diffstat (limited to 'Completion/Unix/Command/_mh')
-rw-r--r--Completion/Unix/Command/_mh7
1 files changed, 5 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_mh b/Completion/Unix/Command/_mh
index 48177982e..3eddd41a6 100644
--- a/Completion/Unix/Command/_mh
+++ b/Completion/Unix/Command/_mh
@@ -1,4 +1,4 @@
-#compdef ali anno burst comp dist flist flists folder folders forw inc mark mhlist mhmail mhn mhparam mhpath mhshow mhstore msgchk next packf pick prev refile repl rmf rmm scan show sortm whom
+#compdef ali anno burst comp dist flist flists fmttest folder folders forw fnext fprev inc mark mhfixmsg mhlist mhmail mhn mhparam mhpath mhshow mhstore msgchk new next packf pick prev refile repl rmf rmm scan show sortm whom
 
 if [[ -z $commands[mhpath] ]]; then
   _message "MH commands are not available"
@@ -73,7 +73,9 @@ elif [[ $service = mhparam ]]; then
 elif [[ $service = ali ]]; then
   _email_addresses -n MH
 elif compset -P '*:'; then
-  _message -e number 'number of messages'
+  _alternative \
+    'sequences:sub-sequence:(first last cur prev next)'
+    'number: : _message -e number "number of messages"'
 else
   # Generate sequences.
   local foldnam folddir f sequences mhneg ret=1
@@ -95,6 +97,7 @@ else
   sequences=( ${${(f)"$(mark $foldnam 2>/dev/null)"}%%:*} )
   mhneg="$(mhparam Sequence-Negation)" && sequences=( {,$mhneg}$^sequences )
   sequences+=( all first last prev next )
+  [[ $service = mhpath ]] && sequences+=( new )
   _tags sequences
   while _tags; do
     while _next_label sequences expl sequence; do