Bug 128421 - Feature Req: "Copy & Paste" option in Konsole
Summary: Feature Req: "Copy & Paste" option in Konsole
Status: RESOLVED INTENTIONAL
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-01 09:05 UTC by VR
Modified: 2011-08-21 03:56 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
patch to enable 'paste selection' to menu and RMB (653 bytes, patch)
2006-11-13 19:15 UTC, Mike Pagano
Details

Note You need to log in before you can comment on or make changes to this bug.
Description VR 2006-06-01 09:05:28 UTC
Version:            (using KDE KDE 3.5.2)
Installed from:    Unspecified Linux
OS:                Linux

Hi,

It would be nice if Konsole had a "Copy+Paste" option that would appear in the pop-up context menu (typically right-click where Copy,Paste,Send Signal, etc appear).

This might seem like a silly request but actually I find myself frequently copying+pasting from a previous line in in a shell to the current one.  SecureCRT has this feature and I find it invaluable!
Comment 1 VR 2006-06-01 09:18:23 UTC
I must have accidentally hit the send button multiple times, I see 3 e-mails about the same request...can the additional two be deleted?
Comment 2 Thiago Macieira 2006-06-05 00:52:31 UTC
No KDE application has that option. I find it would be a bad idea to add that option to the RMB menu.

So maybe with MMB-selection it could paste automatically?
Comment 3 Mike Pagano 2006-11-13 19:15:24 UTC
Created attachment 18527 [details]
patch to enable 'paste selection' to menu and RMB

I wrote a small patch to 3.5.2 to enable this in Konsole menu and RMB and
submitted it on the mailing list.[1] I find it extremely useful to have in the
menu.

I've updated it for 3.5.5 and have attached it to this bug.

[1] http://lists.kde.org/?l=konsole-devel&m=115646190031750&w=2
Comment 4 Robert Knight 2006-11-13 20:39:13 UTC
> This might seem like a silly request but actually I find myself frequently 
> copying+pasting from a previous line in in a shell to the current one. 

Can I have some example use cases?  Does what you have in mind give the same result that making a selection and then middle-clicking does at the moment?  (when you make a selection it is automatically placed on the clipboard, and middle-clicking will send the clipboard contents to the shell).

I really want to be careful with what goes into the various menus in Konsole, to avoid the 'kitchen sink' syndrome where menus become overly large and important items become harder to find.
Comment 5 Mike Pagano 2006-11-13 20:55:35 UTC
User with no mouse middle button :( wants to easiy paste a highlighted selection of text.  User selects text, right clicks mouse button and selects 'Paste Selection'.

Yeah, I'm hopeful that if I had a middle mouse button I would have know about this feature. :)

Comment 6 Robert Knight 2006-11-13 22:48:15 UTC
> Yeah, I'm hopeful that if I had a middle mouse button 
> I would have know about this feature. :) 

I must admit it surprises me to learn that there are still Konsole users without three button mice.  

Another alternative is to tell KDE to put selected text on the clipboard, rather than keeping it separate.  You can do this by right-clicking on the clipboard icon in the system tray, selecting "Configure Klipper" and selecting the "Synchronise contents of clipboard and selection" option.

After than text you select in Konsole will be put on the clipboard immediately so you can paste it by selecting a block of text, and then right-clicking and selecting Paste.

Maybe this will be useful in other KDE applications as well?
Comment 7 Mike Pagano 2006-11-14 16:25:41 UTC
Yes, your suggestion of using Klipper did work nicely.  Funny thing is, this laptop is a 5 month old dual core Dell, but they don't have a middle mouse button. :(
Comment 8 Stephan Sokolow 2008-01-10 02:45:07 UTC
Heh. One of the many reasons I don't like working on laptops. (Another being that people seem obsessed with touchpads, while I find hitting my fingers with a hammer more pleasurable)

Take a look at the X server's ability to emulate a third mouse button by clicking both buttons at the same time.
Comment 9 Mike Pagano 2008-01-10 03:30:18 UTC
Thanks, I had trouble with Klipper so I just patch Konsole myself.

http://www.mpagano.com/blog/?p=34
Comment 10 Daniel Hahler 2008-03-08 23:05:39 UTC
As there appears paste a selection, I'd say that "Paste selection" is required.

I wonder anyway why there's no keyboard shortcut for "paste selection".
I'm using Klipper myself to synchronize clipboard and selection, but shouldn't be a given.
Comment 11 Jekyll Wu 2011-08-21 03:56:20 UTC
KDE4 konsole allows user to 'paste selection' using keyboard shortcut. And user can still 'paste selection'  using the middle-click of mouse as in other apps. So I think there is really no good reason to add this extra action.