Re: [dev] st: bracketed paste mode

2013-09-23 Thread stargrave
Greetings! - User Roberto E. Vargas Caballero on 2013-09-19 11:27:56 wrote: >It seems there are some users that could be interested in this feature, >so I will apply it next week. I have tested the latest master branch of st just to see what this feature is. It is really great! Thanks Egmont f

Re: [dev] st: bracketed paste mode

2013-09-22 Thread v4hn
Just wanted to say thanks (for a change ;) )! This is one of the many tiny quirks I never bothered to look into but always found annoying! Now I at least know how to work around that. v4hn On Wed, Sep 18, 2013 at 05:12:58PM +0100, Raphaël Proust wrote: > On Wed, Sep 18, 2013 at 4:55 PM, Egmont

Re: [dev] st: bracketed paste mode

2013-09-19 Thread random832
On Thu, Sep 19, 2013, at 10:51, Nick wrote: > To check, how does this work exactly? Does X send the escape code to > any window when pasting with middle click, and those which don't > understand it just ignore it? And then once st has done the > appropriate stuff with the pasted text, vim (for exam

Re: [dev] st: bracketed paste mode

2013-09-19 Thread Nick
Thanks alot for the explanation Egmont, that was very interesting :) Sounds like as useful a feature as I hoped. Nick

Re: [dev] st: bracketed paste mode

2013-09-19 Thread Egmont Koblinger
On Thu, Sep 19, 2013 at 4:51 PM, Nick wrote: > To check, how does this work exactly? Does X send the escape code to > any window when pasting with middle click X doesn't do anything special. It's st that changes its behavior and does some extra stuff. There's no change whatsoever until someone

Re: [dev] st: bracketed paste mode

2013-09-19 Thread Nick
To check, how does this work exactly? Does X send the escape code to any window when pasting with middle click, and those which don't understand it just ignore it? And then once st has done the appropriate stuff with the pasted text, vim (for example) will detect that and behave as though :paste is

Re: [dev] st: bracketed paste mode

2013-09-19 Thread Egmont Koblinger
On Thu, Sep 19, 2013 at 11:27 AM, Roberto E. Vargas Caballero wrote: > It seems there are some users that could be interested in this feature, > so I will apply it next week. Cool, thanks! :) egmont

Re: [dev] st: bracketed paste mode

2013-09-19 Thread Roberto E. Vargas Caballero
> See e.g. > http://stackoverflow.com/questions/5585129/pasting-code-into-terminal-window-into-vim-on-mac-os-x > (especially the 2nd comment) > > hope that helps, It seems there are some users that could be interested in this feature, so I will apply it next week. -- Roberto E. Vargas Caballer

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

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 switc

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 Raphaël Proust
On Wed, Sep 18, 2013 at 4:55 PM, Egmont Koblinger 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 window and pas

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 -

[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 t