mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-20 05:53:52 +01:00
Fixes for mh completions.
This commit is contained in:
parent
fd305eb30a
commit
e50ffb3f59
@ -1,3 +1,9 @@
|
||||
2001-03-24 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 13740: Completion/User/_mailboxes: Fixes for mh (based on PWS's
|
||||
patch in 13737): handle sub-folders; handle +folder abbreviations;
|
||||
add commented-out lines that might eventually handle @folder, too.
|
||||
|
||||
2001-03-23 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 13736: Test/01grammar.ztst: Enable more tests as they seem to
|
||||
|
@ -84,6 +84,7 @@ _mailbox_cache () {
|
||||
_maildir_cache=( "${_maildir_cache[@]}" "$i" )
|
||||
elif j=( "$i"/<1-> ) && [[ -n "$j" ]]; then
|
||||
_mh_cache=( "${_mh_cache[@]}" "$i" )
|
||||
dirboxes=( $dirboxes "$i"/*(/) )
|
||||
else
|
||||
_mbox_cache=( "${_mbox_cache[@]}" "$i"/*(.) )
|
||||
dirboxes=( $dirboxes "$i"/*(/) )
|
||||
@ -116,8 +117,17 @@ _mua_mailboxes() {
|
||||
"${_mailbox_cache[@]}" )
|
||||
fi
|
||||
;;
|
||||
(*:mh:*) # I've probably got this wrong, or at least incomplete
|
||||
(( $#_mh_cache )) && _multi_parts "${expl[@]}" / _mh_cache && ret=0
|
||||
(*:mh:*)
|
||||
# local lastmhbox=??? # Where does this come from?
|
||||
if compset -P +; then
|
||||
mbox_names=( "${(@)_mh_cache#$~maildirectory/}" )
|
||||
# elif compset -P @; then
|
||||
# mbox_names=( "${(@)${(@M)_mh_cache:#$~lastmhbox/*}#$~lastmhbox/}" )
|
||||
else
|
||||
mbox_names=( +"${(@)^_mh_cache#$~maildirectory/}"
|
||||
# @"${(@)^${(@M)_mh_cache:#$~lastmhbox/*}#$~lastmhbox/}"
|
||||
"${_mh_cache[@]}" )
|
||||
fi
|
||||
;;
|
||||
(*:mush:*)
|
||||
if compset -P %; then
|
||||
|
Loading…
Reference in New Issue
Block a user