Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Mutt mailbox completion with "=" (was: Release status update)
- X-seq: zsh-workers 24268
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Subject: Re: Mutt mailbox completion with "=" (was: Release status update)
- Date: Sun, 16 Dec 2007 19:31:43 +0000
- In-reply-to: <20071216173733.GM982@xxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <21585.1197814087@pws-pc> <20071216173733.GM982@xxxxxxxxxxxxxxxxxxx>
On Sun, 16 Dec 2007 18:37:33 +0100
Vincent Lefevre <vincent@xxxxxxxxxx> wrote:
> On 2007-12-16 14:08:07 +0000, Peter Stephenson wrote:
> > - Please do *not* assume I will get around to fixing shell-code
> > completion problems myself. I have quite enough to do otherwise.
> > The two outstanding problems I'm aware of are a Unicode argument
> > not appearing and Mutt mailbox completion with "=" (for which it
> > sounds like the compset argument needs tweaking).
>
> Here this works with
>
> mutt -f '=[TAB]
>
> but not with
>
> mutt -f \=[TAB]
Presumably something like the following fixes this particular problem?
Index: Completion/Unix/Type/_mailboxes
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Type/_mailboxes,v
retrieving revision 1.3
diff -u -r1.3 _mailboxes
--- Completion/Unix/Type/_mailboxes 28 Feb 2006 11:57:20 -0000 1.3
+++ Completion/Unix/Type/_mailboxes 16 Dec 2007 19:32:13 -0000
@@ -150,7 +150,7 @@
fi
;;
(*:mutt:*)
- if compset -P '='; then
+ 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/}")
--
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author