[Konsole-devel] [Bug 89299] prevent paste of newline characters

William M.Hilton wmhilton at gmail.com
Tue Jan 9 15:15:09 UTC 2007


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=89299         




------- Additional Comments From wmhilton gmail com  2007-01-09 16:15 -------
Good point about the semicolons not being good in non-shells. I like Roberts idea better thav Tom's, simply because dialog boxes are annoying for something as basic as copy & paste. What if we add some options to the context menu? Currently it looks like:

Set Selection End
Copy
Paste--------Shift+Insert
Send Signal ->
...

We could keep it that way except when there are newlines in the Clipboard buffer. Then we could change "Paste" to "Paste Multiple Lines" so that the user sees right away that there are newlines in the Clipboard. A submenu would be added with more options, so it would look something like this:

Set Selection End
Copy
Paste Multiple Lines-------- Shift+Insert
Advanced Paste -> (a submenu)
	Paste "as is"
	Paste first line only
	Convert newlines to /n
	Convert newlines to ;
	Add custom conversions...
Send Signal ->
...

The "Advanced Paste" would only be enabled when newlines are in the Clipboard buffer. The "Paste" command (Shift+Insert) would use whichever conversion you selected most recently. To protect first time users, the initial setting could be "Paste first line only"



More information about the konsole-devel mailing list