On 1/4/14, 8:09 AM, Ernest Adrogué wrote:

> One solution is first use completion to narrow down completions and in the
> end use menu-completion, but I think it would be much better to use just one
> key.  In my opinion the best solution would be this: the first TAB does
> completion and successive TABs do menu-completion.  Currently I don't think
> it is possible to configure Readline to do this, is it?

This is an issue when there is more than one possible completion.  I will
assume that you mean that when you say you want "completion" on the first
TAB, you want the longest common prefix displayed, then subsequent TABs to
cycle through the possible completions as menu-complete usually behaves.

If this is the behavior you want, bind TAB to menu-complete and set the
readline variable `menu-complete-display-prefix'.

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

Reply via email to