Bug 315583 - [RFE] support copy/paste to/from X primary selection/clipboard for terminal apps (vim)
Summary: [RFE] support copy/paste to/from X primary selection/clipboard for terminal a...
Status: CONFIRMED
Alias: None
Product: konsole
Classification: Applications
Component: copy-paste (show other bugs)
Version: 2.8.5
Platform: Slackware Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-21 17:24 UTC by Pete Beardmore
Modified: 2013-02-24 21:07 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pete Beardmore 2013-02-21 17:24:05 UTC
when compiled with +xterm_clipboard / +clipboard flags, i can manipulate X primary selection / clipboard via vim registers */+ (for my setup) but only when using xterm/gtk based terminals. i would like support for the appropriate protocol in Konsole too please

the lack of support for this feature has been worked around via interaction with the mouse until today's use case where i needed to move a selection from a vertically split vim window. in this case, using the mouse isn't feasible for multiple lines as only entire lines can be selected

according to the very helpful 'Sho_' (hein@kde.org) on IRC, the protocol was added for xterm in around 2006

control codes here:
http://invisible-island.net/xterm/ctlseqs/ctlseqs.html 
follow any relevant conventions on:
http://standards.freedesktop.org/clipboards-spec/clipboards-latest.txt


Reproducible: Always

Steps to Reproduce:
1. with vim -i | grep \+xterm-clipboard confirming support in vim
2. make a visual selection in vim
3. type  "*p    (3 characters!), and assuming vim's * register points to X-primary selection, go and middle-click in another app's text box/widget etc. 
Actual Results:  
no vim selection pasted

Expected Results:  
vim selection pasted
Comment 1 Pete Beardmore 2013-02-21 17:49:07 UTC
[can't edit the initial report]
step 3 in the 'steps to reproduce' should be "*y ..yanking text 'into' the pri. sel.
Comment 2 Lindsay Roberts 2013-02-24 21:06:36 UTC
This may be a worthwhile task, but if it's only vim support you seek, vim can read/write the X clipboard directly with its +X11 support, no term support required. In some distributions this means you have to run the gvim binary as vim (e.g. alias vim=gvim) but otherwise this should be transparent.
Comment 3 Eike Hein 2013-02-24 21:07:20 UTC
Yeah, we went over that on IRC (it's vimx on Fedora, etc.)