zsh-users
 help / color / mirror / code / Atom feed
From: Frank Terbeck <ft@bewatermyfriend.org>
To: <zsh-users@zsh.org>
Subject: Re: Bash-like autocompletition
Date: Tue, 17 Aug 2010 09:49:13 +0200	[thread overview]
Message-ID: <87vd79fzly.fsf@ft.bewatermyfriend.org> (raw)
In-Reply-To: <4C6A357B.1030306@blau.de> (Matthias Brandt's message of "Tue, 17 Aug 2010 09:08:43 +0200")

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


  reply	other threads:[~2010-08-17  7:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-17  6:13 Matthias Brandt
2010-08-17  6:45 ` Frank Terbeck
2010-08-17  7:08   ` Matthias Brandt
2010-08-17  7:49     ` Frank Terbeck [this message]
2010-08-17  8:01       ` Matthias Brandt
2010-08-17  8:13 ` Guillaume Brunerie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vd79fzly.fsf@ft.bewatermyfriend.org \
    --to=ft@bewatermyfriend.org \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).