Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: accept-and-infer-next-history in path completion
- X-seq: zsh-workers 7089
- From: "Andrej Borsenkow" <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>, "Sven Wischnowsky" <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>, <zsh-workers@xxxxxxxxxxxxxx>
- Subject: RE: accept-and-infer-next-history in path completion
- Date: Fri, 9 Jul 1999 19:17:49 +0400
- Importance: Normal
- In-reply-to: <990709150731.ZM5309@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
>
> I'm a bit (er, a lot) behind on patches ... what's the difference between
> this and accept-and-menu-complete? And if there is a difference, maybe
> accept-and-hold would be a better widget to co-opt than a-a-i-n-h?
>
a-a-m-c accepts finishes the completion of current word and adds _new_ word with
next possible match. a-a-i-n-h in menu select accepts currently selected match
and continues to complete _the_current_word_. In case of multipart ambiguous
completion it makes a big difference:
bor@itsrm2:~%> l /a/p/u/z/*<TAB>
bor@itsrm2:~%> l /archive/pub/unix/z<TAB>
zip/ zmodem/ zsh/
bor@itsrm2:~%> l /archive/pub/unix/zip
zip/ zmodem/ zsh/
If you now press a-a-m-c you get:
bor@itsrm2:~%> l /archive/pub/unix/zip /archive/pub/unix/zmodem
zip/ zmodem/ zsh/
and if you press a-a-i-n-h
bor@itsrm2:~%> l /archive/pub/unix/zip/unzip532.tar.gz
unzip532.tar.gz zcrypt27.zip zip22.tar.gz
unzip540.tar.gz zcrypt28.zip
it assumes, that SELCTMINis set to 0 or 1, so that menu selection is started
immediately.
/andrej
Messages sorted by:
Reverse Date,
Date,
Thread,
Author