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

Re: new completion modifications



On Mar 23,  1:37pm, Scott Lipcon wrote:
} Subject: Re: new completion modifications
}
} OK - I copied _mailboxes to my zsh functions directory, and modified it 
} to include mh_cache:
} 
}  (*:mutt:*)
}       mbox_names=( "${_mutt_cache[@]}" "${_mailbox_cache[@]}"
}                    "${_maildir_cache[@]}" "${_mh_cache[@]}" )
}       mbox_short=( \! \< \> );;

Sigh.  The differences are bigger than I thought.  Try sticking this
in there in place of the above:

    (*:mutt:*)
      if compset -P '='; then
        mbox_names=( "${_mutt_cache[@]#[+=]}" "${(@)_mbox_cache#$~maildirectory/
}" "${(@)_maildir_cache#$~maildirectory/}" "${(@)_mh_cache#$~maildirectory/}")
      elif compset -P +; then
        mbox_names=( "${_mutt_cache[@]#[+=]}" "${(@)_mbox_cache#$~maildirectory/
}" "${(@)_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