From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10535 invoked by alias); 17 Aug 2010 08:01:55 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 15289 Received: (qmail 13605 invoked from network); 17 Aug 2010 08:01:52 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at blau.de does not designate permitted sender hosts) Message-ID: <4C6A41ED.9040807@blau.de> Date: Tue, 17 Aug 2010 10:01:49 +0200 From: Matthias Brandt User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.8) Gecko/20100802 Lightning/1.0b2 Thunderbird/3.1.2 MIME-Version: 1.0 To: Subject: Re: Bash-like autocompletition References: <4C6A2880.8090403@blau.de> <87zkwlg2k5.fsf@ft.bewatermyfriend.org> <4C6A357B.1030306@blau.de> <87vd79fzly.fsf@ft.bewatermyfriend.org> In-Reply-To: <87vd79fzly.fsf@ft.bewatermyfriend.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit Am 08/17/2010 09:49 AM, schrieb Frank Terbeck: > Matthias Brandt wrote: >> Am 08/17/2010 08:45 AM, schrieb Frank Terbeck: >>> Matthias Brandt wrote: >>>> $ ls a #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? > [...] >>> > [...] >> 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. I'm sorry. I've just tried the pastie and it didn't work for me. So now I've tried it on a clean zsh installation et voila: it works like a charm. Obviously i've got some other configuration which mixes it up... Thank you for your patient support! Matthias