Bug 59556 - option to automatically paste entries selected from the history
Summary: option to automatically paste entries selected from the history
Status: RESOLVED NOT A BUG
Alias: None
Product: klipper
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: Esben Mose Hansen
URL:
Keywords:
: 156908 249563 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-06-09 14:50 UTC by Hamish Rodda
Modified: 2011-11-09 22:13 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hamish Rodda 2003-06-09 14:50:41 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 3.3 
OS:          Linux

I often find myself using klipper's history feature while programming, using the shortcut to pop up the dialog.  What I'd like is for klipper to be able to automatically paste the newly selected item from history straight into the currently focused application, instead of always selecting an item from history then having to press paste.

Thanks, Hamish.
Comment 1 Thomas Müller 2004-11-11 00:29:58 UTC
I totally agree.
Comment 2 Esben Mose Hansen 2004-11-20 18:42:01 UTC
Let me get this straight: You want a config option, so that selecting an item from the clipboard history automatically pastes the item into whatever cursor position gets focus after the menu closes?
Comment 3 Hamish Rodda 2004-11-21 19:15:48 UTC
Yes please.  I find I'm always bringing up the klipper menu, selecting the entry I want, then pressing paste... I figure with this option that sequence goes from 3 actions to 2.
Comment 4 Maciej Pilichowski 2006-11-26 19:33:06 UTC
Hamish, great idea!

My 2 cents:
1) LMB, space, enter --> just pastes into active app, does not change "current" clipboard content
2) ctrl+c (or whatever copy shortcut) --> change current clipboard content
3) ctrl+v --> combined both of them

I think that "paste only" should be more obvious one because it is most commonly used (I guess: what point of choosing entry if not for pasting).

ad.1) why not copy+paste and removal of (2) and (3) -- because then user has to get back to the just previous entry -- with three modes there is chance to do exactly what it is preferred
Comment 5 Michael Blakeley 2008-08-24 19:38:45 UTC
I like this idea, but I would want to choose between the current behavior and auto-paste behavior on the fly.

What about making this a new variant on "show klipper popup-menu"? I'd suggest calling it "Paste from klipper popup-menu", with a default shortcut of ctrl-alt-shift-v. When invoked, the usual klipper popup would appear, and whatever text is selected will immediately be pasted into the active window.
Comment 6 Bram Schoenmakers 2008-08-25 19:50:30 UTC
*** Bug 156908 has been marked as a duplicate of this bug. ***
Comment 7 Esben Mose Hansen 2009-10-19 22:35:40 UTC
Rereading this, I am sorry to say it is not possible without essentially changing the way X11 works with clipboards.

Of course, if someone can find a way, please reopen.
Comment 8 info 2009-10-19 22:46:56 UTC
well i tried to obtain a hearing on the kde brainstorm forum regarding this topic since it makes me crazy, too.
perhaps you can vote so we're getting a chance somebody takes care of it:
http://forum.kde.org/brainstorm.php#idea61729
Comment 9 Maciej Pilichowski 2009-10-20 08:30:16 UTC
Esben, ad.#7,  when you press MMB the clipboard is pasted. And it is done by X11, right? Is there any way to inject some data what is pasted? If yes, it could be done by changing the clipbard and telling X11 to paste the content.
Comment 10 Esben Mose Hansen 2009-10-20 10:49:30 UTC
Marciej: No, there is no way. How could there be? It would be a security issue.
Comment 11 Maciej Pilichowski 2009-10-20 11:11:04 UTC
I saw it this way, that emulating MMB should be possible (naive thinking) because you can emulate mouse with keyboard (KDE systemsettings).
Comment 12 Esben Mose Hansen 2009-10-20 11:30:11 UTC
Yeah, sure, you can send a middle mouse click to the application, but there is no way to ensure that the result will be a paste. I will not implement hacks like that; we would get way too many bug reports.
Comment 13 Jekyll Wu 2011-11-09 22:13:49 UTC
*** Bug 249563 has been marked as a duplicate of this bug. ***