Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Alias and zstyle contexts
- X-seq: zsh-users 19523
- From: Silas Silva <silasdb@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Alias and zstyle contexts
- Date: Thu, 11 Dec 2014 15:22:03 -0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=RsPMxV+8s6jQHhn2cRV7PZ14QMlyuB5RVgshjgwbClQ=; b=cxc8Le65zJ5dI8LZi4DKDD6kWWdnewhodlPRCm3iL6/q36dNna2m1TXD2JXUzw77ce LGvElWP86gMogqY1JpMndcfpihDled+WDL+CGS8gOiC/fD4cQZLbsC7WRSKiN06hUD0w eyL7Z3vea4ZjfGlGXvlluZIwfvvcIhDkL431anUTpQr10lrbne+uKk6NSMNl0ritIHM/ 56d4gwVaHFprzwIR4K0QUiEpdTX1B6+VkjGKJn5rwmX3NvIIP0gCRzPy/IvilcZ4y4v0 xF4IdX8ugKUp82X9HSIZ8O3+K1llJyV5EMrO1QFfGxhl2AJHc8DuIMFvsfUXvv8Wqyua Je2w==
- In-reply-to: <CAHYJk3ToNrKe59Z2-vKsfCvK0SavR8cnTAXbKdoFvhVnBY7azQ@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20141208230255.GA6029@rikku> <CAHYJk3Q81kkEP7A+itV7E3JytKx7gVBsS80L8RYzTeeKbCrS6g@mail.gmail.com> <20141209161119.GA2492@rikku> <CAHYJk3ToNrKe59Z2-vKsfCvK0SavR8cnTAXbKdoFvhVnBY7azQ@mail.gmail.com>
On Wed, Dec 10, 2014 at 02:41:29AM +0100, Mikael Magnusson wrote:
> I don't have mutt so I can't try this, and if it doesn't work, maybe
> someone else has a suggestion.
> compdef -e 'curcontext=:complete:mutt:w:; _mutt' muttw
> and then set the mail-directory style for that tag instead. Maybe?
> There may be some much more elegant way to do this (if it at all
> works).
Hi Mikael and guys,
Thank for the tip. It would work fine, if there wasn't a problem:
_mailboxes has a _mailbox_cache variable that would prevent the code to
evaluate again even in another context. The workaround I came up with
is:
compdef -e 'curcontext=:complete:mutt:w:; _mutt; unset _mailbox_cache' muttw
This is not beautiful but it works.
Is a patch to make _mailboxes work with different contexts and yet be
efficient (working with different cache for different context)
desirable?
Thank you very much!
--
Silas Silva
Messages sorted by:
Reverse Date,
Date,
Thread,
Author