This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Improve middle click copy-paste behaviour

3

Votes
7
4
Tags: shortcuts shortcuts shortcuts
(comma "," separated)
Lukas
Registered Member
Posts
427
Karma
0
As far as I understand, copy-paste via middle mouse button click was created to make possible to copy text only with mouse.

By now it is not always possible :(

Idea:

When pasting text via middle click check text being pasted against text being removed. If they are the same, paste previously (older) selected text


Example: lets you have mixed up inputs in some text areas like

Your name: You-type-your-email
Your email: You-type-your-name

The best scenario should be
  1. Select your name - copy name to clipboard
  2. select your email - copy email to clipboard
  3. Click middle mutton - detect, that you click on the same input as it is in clipboard and paste previously copied text (your real email)
  4. Select your name - copy email to clipboard
  5. Pres middle button - detect, that you click on the same input as it is in clipboard and paste previously copied text (your real name)


This scenario would avoid pasting the same on the same content, but also would leave last selected text in clipboard for future use (as it is now)
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
This is virtually impossible to implement under any operating system, and if it is done it would have extremely tight integration with the clipboard manager currently in use, which would vary depending on the operating system in question.

Not to mention the clipboard manager does not know where the copied / cut text came from, so therefore it wouldn't be possible to select it differently there, it would have to be done differently in every application, and the application would have to keep previous text in memory in order to perform comparisons.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Lukas
Registered Member
Posts
427
Karma
0
Are you 100% sure about this?

The main question, is how do clipboard gets copied text.
Does it receives signal only short after text has been selected, or all the time text is being selected
Does it get any other information (like its html, plain text etc) o just single string.
Is here are any feedback
Is middle click action is controlled by mouse drivers or clipboard etc.
clintonthegeek
Registered Member
Posts
49
Karma
0
Yeah even if it were realistically possible without breaking everything (it's not) it would lend itself to unpredictable behaviour. A much more realizable goal would perhaps be to change Klipper to better meet your needs in overcoming the shortcomings of the middle-click clipboard (Taskbar plasma applet, perhaps?).
Lukas
Registered Member
Posts
427
Karma
0
thats what i call brainstorming ;) especially when I/we/you/anyone cant know every architectural details

So could you extend your idea? :)


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft