Summary: | Request for Bracketed paste mode | ||
---|---|---|---|
Product: | [Applications] konsole | Reporter: | Egmont Koblinger <egmont> |
Component: | copy-paste | Assignee: | Konsole Developer <konsole-devel> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/konsole/886f12d730e0678bb193827a75074f178a8e8d62 | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: | Demo patch |
Description
Egmont Koblinger
2013-09-15 22:15:24 UTC
Created attachment 82331 [details]
Demo patch
A working patch is added.
Most of the time I just copied usesMouse without understanding what happens. Probably some parts are not needed. The variable name "programBracketedPasteMode" doesn't make much sense. Could you please clean up my work? :)
Thanks, I'll see about getting it committed. Friendly ping :) This is getting a really widespread feature of terminals. It is currently supported by at least xterm, vte/gnome-terminal, pterm/putty, st [suckless], terminology [enlightenment], urxvt, iterm2. Git commit 8082bcd2ef822fbbe06ca8716633f44fd20c0cb4 by Kurt Hindenburg. Committed on 11/01/2014 at 17:28. Pushed by hindenburg into branch 'master'. Add xterm's bracketed paste mode Allow xterm's bracketed paste mode to work When enabled by '\e[?2004h', pasted data is surrounded by \e[200~ and \e[201~. This is mainly for text editors to temporarily switch off autoindent and line wrapping. http://invisible-island.net/xterm/ctlseqs/ctlseqs.html This page have a .vimrc that will trigger this https://bugzilla.gnome.org/show_bug.cgi?id=605299 Thanks to Egmont Koblinger for patch Related: bug 4, bug 13 M +13 -0 src/Emulation.cpp M +7 -0 src/Emulation.h M +5 -0 src/Session.cpp M +14 -0 src/TerminalDisplay.cpp M +4 -0 src/TerminalDisplay.h M +14 -0 src/Vt102Emulation.cpp M +2 -1 src/Vt102Emulation.h http://commits.kde.org/konsole/8082bcd2ef822fbbe06ca8716633f44fd20c0cb4 Git commit 886f12d730e0678bb193827a75074f178a8e8d62 by Kurt Hindenburg. Committed on 11/01/2014 at 17:28. Pushed by hindenburg into branch 'frameworks'. Add xterm's bracketed paste mode Allow xterm's bracketed paste mode to work When enabled by '\e[?2004h', pasted data is surrounded by \e[200~ and \e[201~. This is mainly for text editors to temporarily switch off autoindent and line wrapping. http://invisible-island.net/xterm/ctlseqs/ctlseqs.html This page have a .vimrc that will trigger this https://bugzilla.gnome.org/show_bug.cgi?id=605299 Thanks to Egmont Koblinger for patch Related: bug 4, bug 13 (cherry picked from commit 8082bcd2ef822fbbe06ca8716633f44fd20c0cb4) M +13 -0 src/Emulation.cpp M +7 -0 src/Emulation.h M +5 -0 src/Session.cpp M +14 -0 src/TerminalDisplay.cpp M +4 -0 src/TerminalDisplay.h M +14 -0 src/Vt102Emulation.cpp M +2 -1 src/Vt102Emulation.h http://commits.kde.org/konsole/886f12d730e0678bb193827a75074f178a8e8d62 |