Re: vte widget improvement idea
- From: Gergely Polonkai <gergely polonkai eu>
- To: Wouter Verhelst <w uter be>
- Cc: gtk-app <gtk-app-devel-list gnome org>
- Subject: Re: vte widget improvement idea
- Date: Thu, 11 Jun 2015 22:17:17 +0200
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 warned me about such an
occasion. This means that the terminal has some knowledge on this.
On 11 Jun 2015 19:13, "Wouter Verhelst" <w uter be> wrote:
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 feature? Do you think this is a good idea? Any
suggestions?
To be honest, I think that's a terrible idea.
You're assuming that pasting something into a shell is always a bad
idea. It is if you did it by accident, but if you do it on purpose, it
isn't.
If I mail my customer to please paste these two commands from their mail
into a shell window, I don't want to have to tell them to switch off
this "protection" first.
If I have a web page with documentation which says that "to create a new
user, first run adduser <usxername>, and then run passwd <username>", I
don't want to have to tack on "but you can't paste that in the shell
window".
There are plenty of valid uses for pasting something into a terminal
window. Let's not throw the kid out with the bath water.
--
It is easy to love a country that is famous for chocolate and beer
-- Barack Obama, speaking in Brussels, Belgium, 2014-03-26
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]