Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: new completion modifications
- X-seq: zsh-users 3739
- From: Scott Lipcon <slipcon@xxxxxxxxxx>
- To: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- Subject: Re: new completion modifications
- Date: Fri, 23 Mar 2001 15:16:05 -0500
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: Message from "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>    of "Fri, 23 Mar 2001 18:54:00 GMT." <1010323185400.ZM28172@xxxxxxxxxxxxxxxxxxxxxxx> 
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
> Sigh.  The differences are bigger than I thought.  Try sticking this
> in there in place of the above:
Thanks!  that mostly works - good enough for my uses anyway.  
The difference now is that scan (and other MH tools) completions handle
subfolders fine, mutt doesn't. 
% scan +inb<tab>
completes to:
% scan +inbox/
and my cursor is immediately after the /.
% mutt -f +inb<tab>
completes to:
% mutt -f +inbox 
and my cursor is after the space (two characters after the x)  
as I said - good enough :)   I think I'll just leave my home machine
running 3.0.8 for now though, eventaully moving to the new version.
Scott
> 
>     (*:mutt:*)
>       if compset -P '='; then
>         mbox_names=( "${_mutt_cache[@]#[+=]}" "${(@)_mbox_cache#$~maildirecto
> ry/
> }" "${(@)_maildir_cache#$~maildirectory/}" "${(@)_mh_cache#$~maildirectory/}"
> )
>       elif compset -P +; then
>         mbox_names=( "${_mutt_cache[@]#[+=]}" "${(@)_mbox_cache#$~maildirecto
> ry/
> }" "${(@)_maildir_cache#$~maildirectory/}" "${(@)_mh_cache#$~maildirectory/}"
> )
>       else
>       mbox_names=( "${_mutt_cache[@]}" "${_mailbox_cache[@]}"
>                    "${_maildir_cache[@]}" "${_mh_cache[@]}" )
>       mbox_short=( \! \< \> )
>       fi
>       ;;
> 
> If that doesn't work, you're going to have to upgrade.
> 
> -- 
> Bart Schaefer                                 Brass Lantern Enterprises
> http://www.well.com/user/barts              http://www.brasslantern.com
> 
> Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   
> 
Messages sorted by:
Reverse Date,
Date,
Thread,
Author