Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Main Support Categories > Desktop Environments
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Desktop Environments
Support for your Ubuntu desktop. Including Gnome, KDE and XFCE.

 
Thread Tools Display Modes
Old September 25th, 2009   #1
bamboomy
5 Cups of Ubuntu
 
Join Date: Feb 2008
Beans: 20
Lightbulb Pasting where the cursor is.

Hi yall,

I got a question/request for feature for gnome but wanted to check whether it already exists or whether there is a reasonably simple way of achieving it.

Like most desktop users I quite regularly use the copy-paste 'feature' that is part of, well, every desktop environment I know actually. (others I don't call environments ).

But I want to do something that would increase productivity:

You have two ways of copying in Linux,
* select something (without further ado) and middle click on the place where you want it to be pasted
* select something, press ctrl+c and paste with ctrl+v

I want a combination of both:

I'd like to just select something and then paste it where the (keyboard) cursor is at the destination.

Middle clicking has the disadvantage that you need to place the (mouse) cursor at the place where you want it to be pasted, which is, quite often inside a large text file, while it might be handy to paste where the keyboard cursor is at the moment. Middle clicking demands that, in that case, you go exactly where the keyboard cursor is and paste it there...

I guess I'd like to have a keyboard short-cut for pasting the content of the mouse clipboard.

any suggestions?

S.
bamboomy is offline   Reply With Quote
Old September 25th, 2009   #2
sweetleaf
5 Cups of Ubuntu
 
Join Date: Sep 2009
My beans are hidden!
Re: Pasting where the cursor is.

One workaround would be to use a non-graphical text editor (nano, vi) without mouse support. Then you can middle-click anywhere in the window, and the text will paste wherever the (keyboard) cursor happens to be.
__________________
Ubuntu/IceWM 9.04 on iMac G3 750CXe (early 2001), 256 MB
Xubuntu 9.04 on Athlon XP 2400, 768MB
sweetleaf is offline   Reply With Quote
Old 3 Weeks Ago   #3
bamboomy
5 Cups of Ubuntu
 
Join Date: Feb 2008
Beans: 20
Re: Pasting where the cursor is.

Quote:
Originally Posted by sweetleaf View Post
One workaround would be to use a non-graphical text editor (nano, vi) without mouse support. Then you can middle-click anywhere in the window, and the text will paste wherever the (keyboard) cursor happens to be.
This is indeed true but also indeed a workaround...

I like to program in Java and I like doing that with eclipse.

Programming java in a non-graphical text-editor doesn't, to be polite, give as much features as eclipse. It would slow me down considerably causing the advantage of the suggested feature to be insignificant.

S.

Last edited by bamboomy; 3 Weeks Ago at 09:35 AM..
bamboomy is offline   Reply With Quote
Old 3 Weeks Ago   #4
sisco311
Skinny Extra Sweet Ubuntu
 
sisco311's Avatar
 
Join Date: Feb 2007
Location: romania
My beans are hidden!
Ubuntu Development Release
Re: Pasting where the cursor is.

Quote:
Originally Posted by bamboomy View Post
I guess I'd like to have a keyboard short-cut for pasting the content of the mouse clipboard.

any suggestions?

S.
Code:
xsel -o
You may have to install xsel first.

Click here to install it. (apturl link)

Last edited by sisco311; 3 Weeks Ago at 09:58 AM..
sisco311 is offline   Reply With Quote
Old 3 Weeks Ago   #5
bamboomy
5 Cups of Ubuntu
 
Join Date: Feb 2008
Beans: 20
Talking Re: Pasting where the cursor is.

Quote:
Originally Posted by sisco311 View Post
Code:
xsel -o
You may have to install xsel first.

Click here to install it. (apturl link)
If describing my problem would be a river and the solution a bridge over that river then your solution is a big run and a jump.

Although you already got halfway, you still fall into the river.

Getting the selected content of the X server to standard out is already something, but getting it into eclipse is another.

After some searching I stumbled upon glipper, it letting manage both X selection and Ctrl+c/Ctrl+v and, when the cursor is at the right place (in eclipse), clicking on the text you want to be selected in glipper and control V:

Voila

The content of the selected selection gets properly pasted to the place where the cursor is at the given moment...

Problem solved...

Thanks for the responses, without them I'd never have found the solution myself...

S.
bamboomy is offline   Reply With Quote

Bookmarks

Tags
copy-paste, gnome, keyboard, mouse

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:53 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry