[Top][All Lists]

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

Re: How does one disable completion when nothing but tabs or spaces is o

From: Chet Ramey
Subject: Re: How does one disable completion when nothing but tabs or spaces is on the line?
Date: Sat, 05 Jan 2013 21:08:28 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/17.0 Thunderbird/17.0

On 1/5/13 8:36 PM, Linda Walsh wrote:
> Chet Ramey wrote:
>> OK, if readline as it currently exists doesn't offer the feature you want,
>> why not take a shot at writing it?  You might find that others like it as
>> well, though none of them have spoken up so far.
> ----
>     This feature used to exist in 3.0.  You "fixed it" to only
> work at the command prompt.  It would be useful, as you did the work
> to create the new functionality, if that fix could be put into an option.

No, it really didn't.  In bash-3.0, bash-3.1, and bash-3.2, TAB performs
filename completion when at $PS2 while entering quoted strings or multi-
line compound commands, whether or not the no_empty_cmd_completion option
is on or not.

>     Thank-you for pointing my confusion.  However, what I'd rather have,
> ties in with the last paragraph you neglected to mention:
>    "I also noticed bash doesn't recognize META-key sequences in vi-mode.
>    Yet it does recognize ESC-prefixed cursor-key sequences as not being "ESC",
>    but I should likely address that in a separate email so as not to confuse
>    the issue."

I'll take a look at the meta-key sequences (by which I assume you mean
keys whose value is > 127) issue with vi-insert mode.

There is an intra-character timeout in current readline versions that does
what I think you are talking about.  That is what allows readline to
distinguish between, say, ESC meaning to go into vi commandm mode, and
ESC-TAB meaning to perform word completion.

``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]