You are not logged in.

#1 2015-02-14 09:05:05

Gamonics
Member
From: Rhode Island, USA
Registered: 2015-02-10
Posts: 40
Website

[SOLVED] copy/paste with urxvt-perls not working as expected

I have the following in my .Xresources:

cat .Xresources |grep perl|grep -v ^\!
URxvt.perl-ext-common: default,keyboard-select,clipboard,url-select
URxvt.keysym.M-Escape: perl:keyboard-select:activate
URxvt.keysym.M-s: perl:keyboard-select:search
URxvt.keysym.M-c:   perl:clipboard:copy
URxvt.keysym.M-v:   perl:clipboard:paste
URxvt.keysym.M-C-v: perl:clipboard:paste_escaped
URxvt.keysym.M-u: perl:url-select:select_next

And this is the documentation I find in  /usr/lib/urxvt/perl/keyboard-select

# Usage: put the following lines in your .Xdefaults/.Xresources:
#   URxvt.perl-ext-common: ...,keyboard-select
#   URxvt.keysym.M-Escape: perl:keyboard-select:activate
# The following line overwrites the default Meta-s binding and allows to
# activate keyboard-select directly in backward search mode:
#   URxvt.keysym.M-s: perl:keyboard-select:search

# Use Meta-Escape to activate selection mode, then use the following keys:
#   h/j/k/l:    Move cursor left/down/up/right (also with arrow keys)
#   g/G/0/^/$/H/M/L/f/F/;/,/w/W/b/B/e/E: More vi-like cursor movement keys
#   '/'/?:      Start forward/backward search
#   n/N:        Repeat last search, N: in reverse direction
#   Ctrl-f/b:   Scroll down/up one screen
#   Ctrl-d/u:   Scroll down/up half a screen
#   v/V/Ctrl-v: Toggle normal/linewise/blockwise selection
#   y/Return:   Copy selection to primary buffer, Return: deactivate afterwards
#   q/Escape:   Deactivate keyboard selection mode

Much of this works as advertised for me. I can use M-Escape to activate selection mode. I can navigate according to these instructions. I can toggle normal selection with "v", and I can paste with M-v whatever is in the CLIPBOARD buffer (I'm using the PRIMARY/selection buffer, but in a totally independent manner, and what I copy into PRIMARY I know how to paste into another application). I can highlight with "v" and "V" and I can also navigate with Ctrl-f/b and Ctrl-d/u. I can also search as advertised. Likewise, the url-select parts work wonderfully. But for some reason that I just can't figure out, neither "M-c" nor "y" nor "Return" are getting the selected (reverse highlighting) text into the CLIPBOARD buffer. When I issue those keyboard commands, they seem to behave as expected in every way except that whatever I last copied into the CLIPBOARD buffer is still in the CLIPBOARD buffer after I try (using say, "M-c") to bump the old content of the CLIPBOARD buffer out and replace it with what I've selected when I use "M-c".

Any suggestions on what I'm missing? I've seen other similar posts in the forums, but none of those solutions are working for me.

Last edited by Gamonics (2015-02-15 17:24:18)

Offline

#2 2015-02-15 17:23:50

Gamonics
Member
From: Rhode Island, USA
Registered: 2015-02-10
Posts: 40
Website

Re: [SOLVED] copy/paste with urxvt-perls not working as expected

I got this resolved with the author's help.

Offline

Board footer

Powered by FluxBB