You are not logged in.

#1 2016-03-16 10:32:47

Revival-of-Lost-Art
Member
Registered: 2015-12-17
Posts: 15

[SOLVED] copying & pasting via keyboard in terminal

.Xresource
!clipboard
URxvt.perl-ext-common:  default,keyboard-select,clipboard,url-select
URxvt.keysym.M-Escape:  perl:keyboard-select:activate
URxvt.keysym.M-u:       perl:url-select:select_next
URxvt.url-select.launcher: firefox
URxvt.keysym.M-c:       perl:clipboard:copy
URxvt.keysym.M-v:       perl:clipboard:paste
URxvt.keysym.M-C-v:     perl:clipboard:paste_escaped

I do have urxvt-perls installed:
https://www.archlinux.org/packages/comm … xvt-perls/


What works:
1. i can M-u inside terminal and it will jump to url links
2. i can highlight text in my terminal and then M-c to copy, M-v to paste to command line

what doesn't work:
1. when i M-Esc to go to normal mode, then jkhl followed by going into visual mode to highlight the text I want then using y to yank(copy) and then ESC ..... i can't seem to paste it by following it up with the M-v keybind for pasting?

no matter what, after i yank it with vim's y command, it still doesn't seem to get saved in the keyboard.

Anyone have any idea what's wrong with my settings? or where i fucked up in the process?


thanks in advance


*****************EDIT**********************

URxvt.clipboard.autocopy: true


if set to true, the clipboard is automatically
updated whenever the PRIMARY selection changes

solved it by adding this line so the yanked text which usually stores the copied text to primary buffer is automatically loaded into clipboard
**********************************************

Last edited by Revival-of-Lost-Art (2016-03-16 12:24:53)

Offline

Board footer

Powered by FluxBB