bug-bash
[Top][All Lists]
Advanced

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

Re: Completion: menu-complete from second TAB hit onwards


From: Chet Ramey
Subject: Re: Completion: menu-complete from second TAB hit onwards
Date: Wed, 30 Sep 2009 09:01:07 -0400

> I'm trying to get a specific completion behaviour (simple but effective).
> Any help would be greatly appreciated.
> Here is what I'm looking for:
> 
> 1. When TAB is hit once, complete the command-line with the longest common
> prefix AND list all possible completions (at the same time).
> This can be easily achieved by putting 'set show-all-if-ambiguous' in
> ~/.inputrc.
> 
> 2. If TAB is hit again after that, then cycle through the possible
> completions (that is insert the next full match each time TAB is pressed).
> Obviously, I cannot bind TAB to menu-complete cause I would lose 1.

Menu-complete in bash-4.0/readline-6.0 does this.

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]