projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Trash folder replaces rmmproc. Rework of rmm(1) and refile(1).
[mmh]
/
docs
/
COMPLETION-BASH
diff --git
a/docs/COMPLETION-BASH
b/docs/COMPLETION-BASH
index
806c934
..
28aa29f
100644
(file)
--- a/
docs/COMPLETION-BASH
+++ b/
docs/COMPLETION-BASH
@@
-2,6
+2,9
@@
# Copyright 2003 "Wade Richards" <wade@wabyn.net>
# Permission granted to redistribute under the BSD license
# Copyright 2003 "Wade Richards" <wade@wabyn.net>
# Permission granted to redistribute under the BSD license
+[ "$BASH_COMPLETION" ] || echo "ERROR: COMPLETION-BASH is not intended to be \
+sourced directly, but rather added to a bash-completion package installation."
+
have show &&
_nmh()
{
have show &&
_nmh()
{
@@
-41,7
+44,7
@@
_nmh()
-noverbose -version -help)
;;
comp )
-noverbose -version -help)
;;
comp )
- options=(-form -use -nouse -file
+ options=(-form -use -nouse
-editor -noedit -whatnowproc -nowhatnowproc
-version -help )
;;
-editor -noedit -whatnowproc -nowhatnowproc
-version -help )
;;
@@
-53,18
+56,17
@@
_nmh()
folder* )
options=(-all -noall -create -nocreate -fast -nofast -header
-noheader -recurse -norecurse -total -nototal -list -nolist
folder* )
options=(-all -noall -create -nocreate -fast -nofast -header
-noheader -recurse -norecurse -total -nototal -list -nolist
- -push -pop -pack -nopack -print -verbose -noverbose -version
- -help)
+ -push -pop -pack -nopack -print -verbose -noverbose
+ -version -help)
;;
forw )
;;
forw )
- options=(-annotate -noannotate -form -format -noformat
- -filter -inplace -noinplace -mime -nomime
+ options=(-annotate -noannotate -form
-editor -noedit -whatnowproc
-editor -noedit -whatnowproc
- -nowhatnowproc -dashstuffing -nodashstuffing -build -file
+ -nowhatnowproc -build
-version -help)
;;
inc )
-version -help)
;;
inc )
- options=(-audit -noaudit -changecur -nochangecur -form -format
+ options=(-audit -noaudit -changecur -nochangecur -form
-file -silent -nosilent -truncate -notruncate -width
-version -help)
;;
-file -silent -nosilent -truncate -notruncate -width
-version -help)
;;
@@
-77,7
+79,7
@@
_nmh()
-nocheckmime -version -help)
;;
packf )
-nocheckmime -version -help)
;;
packf )
- options=(-file -mbox -mmdf -version -help)
+ options=(-file -version -help)
;;
pick )
options=(-and -or -not -lbrace -rbrace --component -cc
;;
pick )
options=(-and -or -not -lbrace -rbrace --component -cc
@@
-90,14
+92,12
@@
_nmh()
-nocheckmime -version -help)
;;
refile )
-nocheckmime -version -help)
;;
refile )
- options=(-draft -link -nolink -preserve -nopreserve -unlink
- -nounlink -src -file -rmmproc -normmproc -version -help)
+ options=(-link -nolink -src -file -version -help)
;;
repl )
options=(-annotate -noannotate -group -nogroup -cc
;;
repl )
options=(-annotate -noannotate -group -nogroup -cc
- -nocc -query -noquery -form -format -noformat -filter
- -inplace -noinplace -mime -nomime -fcc -width
- -editor -noedit -whatnowproc
+ -nocc -query -noquery -form -filter -nofilter
+ -mime -nomime -editor -noedit -whatnowproc
-nowhatnowproc -build -file -version -help)
;;
rmf )
-nowhatnowproc -build -file -version -help)
;;
rmf )
@@
-107,11
+107,11
@@
_nmh()
options=(-link -nolink -version -help)
;;
scan )
options=(-link -nolink -version -help)
;;
scan )
- options=(-clear -noclear -form -format -header -noheader
- -width -reverse -noreverse -file -version -help )
+ options=(-form -header -noheader
+ -width -file -version -help )
;;
show )
;;
show )
- options=(-draft -showproc -showmimeproc -header -noheader
+ options=(-showproc -showmimeproc -header -noheader
-checkmime -nocheckmime -version -help)
;;
sortm )
-checkmime -nocheckmime -version -help)
;;
sortm )
@@
-132,13
+132,13
@@
_nmh()
+([0-9a-z])-* )
# Partial range
start=${current/%-*/}
+([0-9a-z])-* )
# Partial range
start=${current/%-*/}
- options=( $( scan $folder -format "%(msg)" "${start}-last" ) first prev cur next last )
+ options=( $( scan $folder -form "=%(msg)" "${start}-last" ) first prev cur next last )
options=( ${options[@]//#/${start}-} )
;;
+([0-9]) )
# Message number, or start of range
options=( ${options[@]//#/${start}-} )
;;
+([0-9]) )
# Message number, or start of range
- options=( $( scan $folder -format "%(msg)" ) first prev cur next last )
+ options=( $( scan $folder -form "=%(msg)" ) first prev cur next last )
options=( ${options[@]} ${options[@]//%/-} )
;;
options=( ${options[@]} ${options[@]//%/-} )
;;
@@
-157,4
+157,4
@@
_nmh()
COMPREPLY=( $( compgen -W "${options[*]}" -- $current ) )
return 0
}
COMPREPLY=( $( compgen -W "${options[*]}" -- $current ) )
return 0
}
-[ "$have" ] && complete -F _nmh ali anno burst comp dist flist flists folder folders forw inc mark mhbuild mhl mhlist mhmail mhparam mhpath mhshow mhstore msgchk next packf pick prev prompter rcvdist rcvpack rcvstore rcvtty refile repl rmf rmm scan send sendfiles show slocal sortm whatnow
+[ "$have" ] && complete -F _nmh ali anno burst comp dist flist flists folder folders forw inc mark mhbuild mhl mhlist mhmail mhparam mhpath mhshow mhstore msgchk next packf pick prev prompter rcvdist rcvpack rcvstore refile repl rmf rmm scan send sendfiles show slocal sortm whatnow