On 9/12/19 6:55 PM, Mike Jonkmans wrote:

> 
> What i think happens is, that the escape, from the bracketed paste, takes you 
> into
> command mode, then the '[' does nothing and the 200~ capitalizes to the end 
> of line.

Indeed, that's more or less what happens.

> So I use a workaround for this:
> 
> set keymap vi-command
> "\e[200~": bracketed-paste-begin
> "[200~": bracketed-paste-begin
> 
> set keymap vi-insert
> "\e[200~": bracketed-paste-begin

That works for the common case of bracketed pastes when you're at the
top level (and the vi-insertion key binding is already the default),
but is incomplete.

It doesn't work for things like vi overwrite mode, or to read movement
keys for vi's delete-to or change-to commands, or the replace command
in your original report from July, so that required a little more work.

That updated code is in the readline devel branch on savannah.

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

_______________________________________________
Bug-readline mailing list
Bug-readline@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-readline

Reply via email to