The most sane thing would probably to treat the whole content of the paste
as single command which implicitly means ignoring newlines or escaping
them. The user can then ack the whole array of commands by a single enter
key press.
I find the idea in general pretty good.
On Thu, Jun 11, 2015,
Hi
I'm not sure this is the right place to ask this. I want to implement a new
feature for the vte widget so I am interested to hear the opinion of other
people about this.
Sometimes I think I have something in the clipboard and paste it into the
terminal just to realize I had something else
On Thu, Jun 11, 2015 at 06:55:13PM +0300, Martin Kunev wrote:
[...]
My idea is to add a setting (something like
vte_terminal_set_paste_escape()) that, when turned on, escapes the
dangerous characters (unquoted line feeds) from the clipboard text and then
pastes.
[...]
Any thoughts on this
I don't think it is a bad idea per se. Here are some ideas from me:
• it should be either turned off by default
• or it should warn the user like »hey, you are going to paste multiple
lines, are you sure?« with an option to silence such warnings
Also I remember a warning, maybe from ViM that