Re: [PATCH] bracketed paste support

2014-11-05 Thread Daniel Colascione
On 11/06/2014 02:38 AM, Chet Ramey wrote: > On 11/5/14 9:02 PM, Daniel Colascione wrote: >> On 10/29/2014 08:49 PM, Chet Ramey wrote: On 10/27/14, 6:35 PM, Daniel Colascione wrote: > This patch adds support for "bracketed paste mode" to readline. In > this mode, readline instructs the

Re: [PATCH] bracketed paste support

2014-11-05 Thread Chet Ramey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/5/14 9:02 PM, Daniel Colascione wrote: > On 10/29/2014 08:49 PM, Chet Ramey wrote: >>> On 10/27/14, 6:35 PM, Daniel Colascione wrote: This patch adds support for "bracketed paste mode" to readline. In this mode, readline instructs the t

Re: [PATCH] bracketed paste support

2014-11-05 Thread Daniel Colascione
On 10/29/2014 08:49 PM, Chet Ramey wrote: >> On 10/27/14, 6:35 PM, Daniel Colascione wrote: >>> This patch adds support for "bracketed paste mode" to readline. In >>> this mode, readline instructs the terminal to wrap pasted strings in >>> special control sequences so that programs can distinguish

Re: [PATCH] bracketed paste support

2014-11-04 Thread Bob Proulx
Daniel Colascione wrote: > Bob Proulx wrote: > > I use paste into the shell with an embedded newline in order to > > immediately execute a command *a lot*. If that were removed I would > > be very unhappy. > > I strongly doubt that your use case is typical. It doesn't matter if it is typical or

Re: [PATCH] bracketed paste support

2014-10-31 Thread Mike Frysinger
On 30 Oct 2014 18:45, Daniel Colascione wrote: +1 -mike signature.asc Description: Digital signature

Re: [PATCH] bracketed paste support

2014-10-31 Thread Pádraig Brady
On 10/30/2014 07:46 PM, Bob Proulx wrote: > Chet Ramey wrote: >> * paste into the text editor invoked by the `edit-and-execute-command' key >> binding (C-xC-e in emacs mode), edit the command if desired, and have the >> shell automatically execute the contents of the editing buffer when the >>

Re: [PATCH] bracketed paste support

2014-10-31 Thread Dennis Williamson
On Thu, Oct 30, 2014 at 1:45 PM, Daniel Colascione wrote: > > Sure, you might argue that users should paste into a trusted > intermediate location --- say a text editor --- inspect the code, and > then paste into the shell. That would be the prudent thing to do, but > users don't actually *do* th

Re: [PATCH] bracketed paste support

2014-10-31 Thread Chet Ramey
> Daniel Colascione wrote: > > Well, I don't know whether Chet left the feature enabled by > > default. I hope he did, though, since preventing execution of pasted > > commands is one of the feature's key benefits. In bash, you should > > be able to execute a pasted command sequence by typing RET a

Re: [PATCH] bracketed paste support

2014-10-31 Thread Daniel Colascione
On 10/30/2014 06:05 AM, Bob Proulx wrote: > Daniel Colascione wrote: >> Well, I don't know whether Chet left the feature enabled by >> default. I hope he did, though, since preventing execution of pasted >> commands is one of the feature's key benefits. In bash, you should >> be able to execute a p

Re: [PATCH] bracketed paste support

2014-10-31 Thread Bob Proulx
Chet Ramey wrote: > * paste into the text editor invoked by the `edit-and-execute-command' key > binding (C-xC-e in emacs mode), edit the command if desired, and have the > shell automatically execute the contents of the editing buffer when the > editor exits Cool! This was an idea that I h

Re: [PATCH] bracketed paste support

2014-10-29 Thread Bob Proulx
Daniel Colascione wrote: > Well, I don't know whether Chet left the feature enabled by > default. I hope he did, though, since preventing execution of pasted > commands is one of the feature's key benefits. In bash, you should > be able to execute a pasted command sequence by typing RET after the >

Re: [PATCH] bracketed paste support

2014-10-29 Thread Chet Ramey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/29/14 5:42 PM, Daniel Colascione wrote: > On 10/29/2014 09:35 PM, Pádraig Brady wrote: >> On 10/27/2014 10:35 PM, Daniel Colascione wrote: >> >>> +@item enable-bracketed-paste >>> +@vindex enable-bracketed-paste >>> +If set to @samp{on} and the t

Re: [PATCH] bracketed paste support

2014-10-29 Thread Chet Ramey
On 10/29/14 5:35 PM, Pádraig Brady wrote: > On 10/27/2014 10:35 PM, Daniel Colascione wrote: > >> +@item enable-bracketed-paste >> +@vindex enable-bracketed-paste >> +If set to @samp{on} and the terminal supports bracketed paste mode, >> +configure it to insert each paste into the editing buffer a

Re: [PATCH] bracketed paste support

2014-10-29 Thread Pádraig Brady
On 10/29/2014 09:42 PM, Daniel Colascione wrote: > On 10/29/2014 09:35 PM, Pádraig Brady wrote: >> On 10/27/2014 10:35 PM, Daniel Colascione wrote: >> >>> +@item enable-bracketed-paste >>> +@vindex enable-bracketed-paste >>> +If set to @samp{on} and the terminal supports bracketed paste mode, >>> +

Re: [PATCH] bracketed paste support

2014-10-29 Thread Daniel Colascione
On 10/29/2014 09:35 PM, Pádraig Brady wrote: > On 10/27/2014 10:35 PM, Daniel Colascione wrote: > >> +@item enable-bracketed-paste >> +@vindex enable-bracketed-paste >> +If set to @samp{on} and the terminal supports bracketed paste mode, >> +configure it to insert each paste into the editing buffe

Re: [PATCH] bracketed paste support

2014-10-29 Thread Pádraig Brady
On 10/27/2014 10:35 PM, Daniel Colascione wrote: > +@item enable-bracketed-paste > +@vindex enable-bracketed-paste > +If set to @samp{on} and the terminal supports bracketed paste mode, > +configure it to insert each paste into the editing buffer as a string > +instead of treating the characters p

Re: [PATCH] bracketed paste support

2014-10-29 Thread Chet Ramey
> On 10/27/14, 6:35 PM, Daniel Colascione wrote: > > This patch adds support for "bracketed paste mode" to readline. In > > this mode, readline instructs the terminal to wrap pasted strings in > > special control sequences so that programs can distinguish them from > > typed input. > > Thanks for

Re: [PATCH] bracketed paste support

2014-10-28 Thread Chet Ramey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/27/14, 6:35 PM, Daniel Colascione wrote: > This patch adds support for "bracketed paste mode" to readline. In > this mode, readline instructs the terminal to wrap pasted strings in > special control sequences so that programs can distinguish them