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