bug-bash
[Top][All Lists]
Advanced

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

Re: Completion list showed twice using "show-all-if-ambiguous" and "menu


From: Chet Ramey
Subject: Re: Completion list showed twice using "show-all-if-ambiguous" and "menu-complete" together
Date: Fri, 05 Apr 2013 15:59:11 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130307 Thunderbird/17.0.4

On 4/4/13 7:53 AM, address@hidden wrote:
> Hi,
> 
> Ubuntu 12.10,  Bash 4.2.37
> 
> With the following inputrc ([Ctrl-RightArrow] mapped to menu-complete):
> set show-all-if-ambiguous on
> "\e[1;5C": menu-complete             
> 
> Actual Behaviour
> ----------------
> 
> # Type 'ls d'
> $ ls d
> 
> # Press <tab> key
> $ ls d
> desktop/  document/ dropbox/  
> $ ls d
> 
> # Press [Ctrl-RightArrow]
> $ ls d
> desktop/  document/ dropbox/  
> $ ls d
> desktop/  document/ dropbox/  
> $ ls desktop/
> 
> Desired Behaviour (differs only with last keypress only)
> --------------------------------------------------------
> # Press [Ctrl-RightArrow]
> $ ls d
> desktop/  document/ dropbox/  
> $ ls desktop/

This is how bash-4.3 will work: the list of possible completions is
displayed, then the first from the list is inserted without any
intervening keystrokes required.  The display will look pretty much
like your desired behavior with only one keypress required.

Chet

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



reply via email to

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