Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bash-like autocompletition
- X-seq: zsh-users 15288
- From: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
- To: <zsh-users@xxxxxxx>
- Subject: Re: Bash-like autocompletition
- Date: Tue, 17 Aug 2010 09:49:13 +0200
- In-reply-to: <4C6A357B.1030306@xxxxxxx> (Matthias Brandt's message of "Tue, 17 Aug 2010 09:08:43 +0200")
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <4C6A2880.8090403@xxxxxxx> <87zkwlg2k5.fsf@xxxxxxxxxxxxxxxxxxxxxx> <4C6A357B.1030306@xxxxxxx>
Matthias Brandt wrote:
> Am 08/17/2010 08:45 AM, schrieb Frank Terbeck:
>> Matthias Brandt wrote:
>>> $ ls a<tab> #i want the cli only complete
>>> $ ls aa #until the first ambigous character.
>>> aaaabcdefg aabg aabcdefg #<- the menu will be shown
>>> Any idea how to configure this?
[...]
>> <http://zshwiki.org/home/examples/compquickstart>
[...]
> Sorry, but this doesn't help me. I've allready read some tutorials
> about compsys, but I don't get any solution for my specific problem:
> zsh should only complete until the first ambigous character.
Well, you have to explain where your problem is with that setup...
What that setup does this:
+ Complete until the first non-ambiguous character, if possible.
+ Show a list of possible completions, if there are only ambiguous
completions left and tab is pressed.
+ If the list from the previous step is being displayed and tab is
hit again, enter that list as a browsable menu with a cursor you
can control with the keyboard's cursor keys.
Point one and two sound a *lot* you're asking for. Point three is a
little extra sugar, a lot of people like. You may want the menu to be
shown right away after the first tab when all non-ambiguous characters
have been inserted. If so, that's wasn't entirely clear to me.
But as for "zsh should only complete until the first ambigous
character", that's what that setup does.
Regards, Frank
Messages sorted by:
Reverse Date,
Date,
Thread,
Author