From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25936 invoked by alias); 17 Aug 2010 07:51:03 -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: 15288 Received: (qmail 20868 invoked from network); 17 Aug 2010 07:51:00 -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,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at bewatermyfriend.org does not designate permitted sender hosts) From: Frank Terbeck To: Subject: Re: Bash-like autocompletition In-Reply-To: <4C6A357B.1030306@blau.de> (Matthias Brandt's message of "Tue, 17 Aug 2010 09:08:43 +0200") References: <4C6A2880.8090403@blau.de> <87zkwlg2k5.fsf@ft.bewatermyfriend.org> <4C6A357B.1030306@blau.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Date: Tue, 17 Aug 2010 09:49:13 +0200 Message-ID: <87vd79fzly.fsf@ft.bewatermyfriend.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Df-Sender: 430444 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. But as for "zsh should only complete until the first ambigous character", that's what that setup does. Regards, Frank