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

Re: bug in _mutt ?



On Jun 26,  9:43pm, Andy Spiegl wrote:
> > [...] on strings that aren't necessarily file names.  So you should find
> > that if you type
> > 
> > % mutt -f =sub<TAB>
> > 
> > it'll append the slash, and offer completions of
> > 
> > cus  mutt  zsh  zsh-workers  linux  kira  akte
> 
> Hm, it does append the slash, but then I only get a beep. :-(

Time for <C-x?> and a look at the trace output.  As I said, I don't use
mutt, so it's not straightforward for me to debug this stuff.

> actually in that case I would expect zsh to offer me _all_ the files in
> that directory.  Hm, that's probably the same issue as whether completion
> after = or + should only list the .muttrc-defined mailboxes or whether it
> should list all files under ~/Mail.  I'd prefer both...in separate groups.

Right now _mailboxes understands "mailboxes" and "files in $maildirectory"
as two separate groups, and the prefix `=' is used to introduce "mailboxes"
rather than being an abbreviation for $maildirectory.

It would be possible to treat `=' both ways by moving the `compset -P' test
from the `case' statement down into the `while _tags' loop, I think; it
would also be necessary to special-case the _files call for mutt to pass
it -W $maildirectory, and maybe some other things ...



Messages sorted by: Reverse Date, Date, Thread, Author