[dev] st: bracketed paste mode

2013-09-18 Thread Egmont Koblinger
Hi, I attach a simple patch to st, to enable bracketed paste mode ( http://invisible-island.net/xterm/ctlseqs/ctlseqs.html#Bracketed%20Paste%20Mode). It's mainly useful for text editors to disable line wrapping and auto indentation when text is being pasted, rather than typed from keyboard. On

Re: [dev] st: bracketed paste mode

2013-09-18 Thread Roberto E. Vargas Caballero
Hi, Hi, I attach a simple patch to st, to enable bracketed paste mode ( http://invisible-island.net/xterm/ctlseqs/ctlseqs.html#Bracketed%20Paste%20Mode ). Could you put an example when it is useful? Best regards, -- Roberto E. Vargas Caballero

Re: [dev] st: bracketed paste mode

2013-09-18 Thread Raphaƫl Proust
On Wed, Sep 18, 2013 at 4:55 PM, Egmont Koblinger egm...@gmail.com wrote: Could you put an example when it is useful? Vim has a special mode for that. See :h 'paste' for more details, including: Put Vim in Paste mode. This is useful if you want to cut or copy some text from one

Re: [dev] st: bracketed paste mode

2013-09-18 Thread Egmont Koblinger
Vim has a special mode for that. See :h 'paste' for more details, including: Sure, in every text editor (we're not talking about vim only) you can disable autoindent and wordwrap. The question is if you need to do that manually before every paste, and then revert afterwards (and then it's going

Re: [dev] st: bracketed paste mode

2013-09-18 Thread Egmont Koblinger
Hi, Could you put an example when it is useful? The typical use case is when copy-pasting source code (or any kind of indented text) into text editors that do their own intentation, and the two add up together and produce a staircase effect. With this feature text editors can temporarily

Re: [dev] st: bracketed paste mode

2013-09-18 Thread Nick
On Wed, Sep 18, 2013 at 06:23:52PM +0200, Egmont Koblinger wrote: Vim has a special mode for that. See :h 'paste' for more details, including: Sure, in every text editor (we're not talking about vim only) you can disable autoindent and wordwrap. The question is if you need to do that