bug-bash
[Top][All Lists]
Advanced

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

Re: pasting in bracketed-paste mode breaks reverse-i-search


From: Chet Ramey
Subject: Re: pasting in bracketed-paste mode breaks reverse-i-search
Date: Tue, 21 Apr 2020 10:14:15 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.7.0

On 4/20/20 9:32 PM, gentoo_eshoes--- via Bug reports for the GNU Bourne
Again SHell wrote:

> pasting while in reverse-i-search undoes it
> Repeat-By:
> $ bind 'set enable-bracketed-paste on'
> select character 'c' with the mouse, so it can be pasted via pressing MMB or 
> shift+insert
> press Ctrl+R to enter (reverse-i-search)`': 
> paste, (either by pressing MMB or shift+insert)
> the reverse-i-search prompt goes away and you're back to regular prompt, 
> having just 'c' pasted there: $ c

It's the ESC prefix. You can use it if you remove ESC from the list of
characters that terminate an incremental search. The problem is that most
of the key sequences that begin with ESC (e.g., arrow keys) are intended to
terminate the isearch and use the ESC as the first character of a key
sequence. You have to look farther ahead in the input stream than
incremental search presently does to differentiate between an ESC-prefixed
key sequence you want to use for searching and one you want to terminate
the search and use as a command.


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



reply via email to

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