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

Re: completion but extra options allowed



Hi Bart,

> This means that you type "mutt -f +<TAB>" and zsh will complete files in
> your $HOME/Mail directory following the + sign.  Mutt understands the + as
> an abbreviation for the mail directory.  In the absence of a +, zsh just
> completes file names after "mutt -f".
This is exactly what I am trying to teach zsh-3.1.6.pws16 to do.

> Finally, if you're using zsh-3.1.6*, you can get this and more "for free"
> by enabling the new completion system.  Look up "compinit" in the manual.
Hm, not here. :-(

eule:~>mutt -<TAB>
option
-F -- init file
-H -- draft file
-R -- open in read-only mode
[...]

eule:~>mutt -f <TAB>
/home/spiegl/Mail/aaa
/home/spiegl/Mail/bbb
/home/spiegl/Mail/ccc
[...]

eule:~>mutt -f +<TAB>
<BEEP>

I guess the '+' is not implemented (yet), right?
Looking at _mutt (as a zsh-novice) I can't find anything like it.

And it doesn't expand local filenames either:
eule:~>cd Mail
eule:~/Mail>mutt -f a<TAB>
<BEEP>

BTW, _mailboxes expects the "mailboxes" definition to be in ~/.muttrc.  I
had to change it, because I've got it in ~/.mutt/local, which is sourced
from ~/.muttrc.  The same goes for the aliases. :-(

Bye,
 Andy.

-- 
 E-Mail: Andy@xxxxxxxxx     URL: http://andy.spiegl.de
 PGP/GPG: see headers
                                o      _     _         _
  --------- __o       __o      /\_   _ \\o  (_)\__/o  (_)
  ------- _`\<,_    _`\<,_    _>(_) (_)/<_    \_| \   _|/' \/
  ------ (_)/ (_)  (_)/ (_)  (_)        (_)   (_)    (_)'  _\o_
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Smile... Tomorrow will be worse.



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