summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_mh
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2015-08-22 01:55:58 +0200
committerAxel Beckert <abe@deuxchevaux.org>2015-08-22 01:55:58 +0200
commit02f6e25bfcd5feb9a093377dda0dd549cdf5c309 (patch)
tree9a25e61122b3fa0d0a1ff68b5ef05c775ff78b1e /Completion/Unix/Command/_mh
parente04a19735ffc8523b93b33074f685ad4e2c92e0c (diff)
parent881474edcb223ac22a08d81a824809c33ca3a9c9 (diff)
downloadzsh-02f6e25bfcd5feb9a093377dda0dd549cdf5c309.tar.gz
zsh-02f6e25bfcd5feb9a093377dda0dd549cdf5c309.zip
Merge tag 'zsh-5.0.8-test-2' into debian
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