Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: new completion modifications



> 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