bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: doing completion and menu-completion with just one key


From: Chet Ramey
Subject: Re: doing completion and menu-completion with just one key
Date: Mon, 20 Jan 2014 18:16:34 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

On 1/19/14, 5:18 PM, Ernest Adrogué wrote:

> If I bind TAB to `menu-complete' and set `menu-complete-display-prefix', the
> first TAB displays a list of possible completions, which is what I wanted,
> but it also inserts the first entry from the list of possible completions,
> which is not what I wanted.

I see. This is new information, and a new requirement: you seem to have
show-all-if-ambiguous set.

> For example, if I do:
> 
> $ cd <TAB>
> 
> it displays the possible completions:
> 
> bar/  fooa/ foob/
> 
> and inserts `bar/'.  But `bar/' is not the longest common prefix, the empty
> string is.

This is how bash-4.2 behaves.  Bash-4.3 will behave like you want.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]