Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16218

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

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: pasting in bracketed-paste mode breaks reverse-i-search
Date 2020-04-21 10:14 -0400
Organization ITS, Case Western Reserve University
Message-ID <mailman.887.1587478466.3066.bug-bash@gnu.org> (permalink)
References <M5PMSNi--3-2@tutanota.com> <62817207-4c7b-491e-2c5a-a57128e04b88@case.edu>

Show all headers | View raw


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/

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: pasting in bracketed-paste mode breaks reverse-i-search Chet Ramey <chet.ramey@case.edu> - 2020-04-21 10:14 -0400

csiph-web