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: Sun, 19 Jan 2014 14:04:56 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

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    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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