You are not logged in.

#1 2010-04-21 09:33:34

Mr Fix It
Member
Registered: 2010-04-19
Posts: 7

Urxvt and copy/paste-ing.

Howdy guys.

I'm new to arch, been loving it. Enjoying configuring (and learning) about the parts i need thus far.

This is a weird question though. Basically i'm using urxvt (seems popular, and so far i like it) as my terminal, but i have no idea how to say.... copy and paste from it?..

Basically i would like to cat a file, and copy certain sections from it, so i can post them in forums and the like. And also the inverse, be able to copy and paste lines from examples online into my configs.

So far i've kinda been putting the windows side by side and typing it (<--- not very efficient and very annoying!).

I'm using xmonad for a tiling manager and that's it, so if i need to install maybe an addon into Urxvt or Xmonad i need to know which one to hunt down XD.

Thanks

Offline

#2 2010-04-21 09:44:10

jhvid
Member
From: /dev/denmark
Registered: 2009-08-19
Posts: 52

Re: Urxvt and copy/paste-ing.

Just mark the text that you want to copy with the mouse. To insert press the middle mouse button (or left and right at the same time).


GCS d- s-:+ a12 C++++ U++++ L+++ P--- E--- W+++ N+ o K- w--- O? M-- V? PS PE
Y- PGP? t? 5? X? R tv b+++ DI+ D- G++ e++ h! !r !y

Please ignore me... I'm pretty weird...

Offline

#3 2010-04-21 09:46:16

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Urxvt and copy/paste-ing.

If you select in Urxvt, you should then be able to middle click into another app to paste your selection. To paste in to Urxvt, Shift-Insert.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2010-04-21 09:53:57

Mr Fix It
Member
Registered: 2010-04-19
Posts: 7

Re: Urxvt and copy/paste-ing.

Hey guys i'm using a laptop so no way of middle clicking.

Also is if i select the text, and  then go to chromium, paste does nothing?. Is there a key to copy the selected text into the clipboard?

I seem to be able to insert text from chromium (via copy) and then shift-insert to put it into xrvt

Offline

#5 2010-04-21 09:54:52

jhvid
Member
From: /dev/denmark
Registered: 2009-08-19
Posts: 52

Re: Urxvt and copy/paste-ing.

just press left and right mouse button at the same time.


GCS d- s-:+ a12 C++++ U++++ L+++ P--- E--- W+++ N+ o K- w--- O? M-- V? PS PE
Y- PGP? t? 5? X? R tv b+++ DI+ D- G++ e++ h! !r !y

Please ignore me... I'm pretty weird...

Offline

#6 2010-04-21 10:24:40

Mr Fix It
Member
Registered: 2010-04-19
Posts: 7

Re: Urxvt and copy/paste-ing.

Yeah that or shift-insert seems to work for copying text from the clipboard to urvxt.

However how do i copy stuff from urxvt's terminal into another app?. Just selecting it seems to copy it for urxvt, but other apps don't seem to get this updated clipboard stuff (they will still copy i copied from them).

EDIT: okay you are right, it seems to work that way smile. Just weird and have to hit it a few times for the laptop to work with it. Is there a keyboard shortcut for the left+right click? (Shift-insert doesn't work in other programs)

Last edited by Mr Fix It (2010-04-21 10:30:04)

Offline

#7 2010-04-21 10:43:07

jhvid
Member
From: /dev/denmark
Registered: 2009-08-19
Posts: 52

Re: Urxvt and copy/paste-ing.

Mr Fix It wrote:

Is there a keyboard shortcut for the left+right click?

I don't think so... share if you find out, it kinda hurts to do left+right clicks wink


GCS d- s-:+ a12 C++++ U++++ L+++ P--- E--- W+++ N+ o K- w--- O? M-- V? PS PE
Y- PGP? t? 5? X? R tv b+++ DI+ D- G++ e++ h! !r !y

Please ignore me... I'm pretty weird...

Offline

#8 2010-04-21 11:22:27

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: Urxvt and copy/paste-ing.

You might try autocutsel or parcellite for copy-paste-clipboard management.

There are a few other solutions offered in the wiki: http://wiki.archlinux.org/index.php/Urxvt#Cut_and_paste

Offline

#9 2010-04-21 16:40:41

teh
Member
From: Tijuana, Mexico
Registered: 2009-07-07
Posts: 374
Website

Re: Urxvt and copy/paste-ing.

Use vi mode on *sh (set -o vi).


arst

Offline

Board footer

Powered by FluxBB