Bug 303989

Summary: Add support for auto actions.
Product: [Plasma] plasmashell Reporter: Ilya Konkov <eruart>
Component: Clipboard widget & pop-upAssignee: Esben Mose Hansen <kde>
Status: RESOLVED INTENTIONAL    
Severity: wishlist CC: oracle2b, travneff
Priority: NOR    
Version First Reported In: 5.15.3   
Target Milestone: 1.0   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Sample implementation of the feature

Description Ilya Konkov 2012-07-24 07:02:39 UTC
Allow user to add "auto" actions, which will execute automatically on text selection without pop or anything.

I use this feature to sync my laptops' clipboard. On text selection a shell script is executed, which copies clipboard content over ssh to another machine.
According to next post I'm not the only one who wants this:
http://superuser.com/questions/286142/perform-action-when-clipboard-contents-match-regex

Reproducible: Always

Steps to Reproduce:
1. Select text
2. Do nothing
3. Profit!
Actual Results:  
Popup menu shows up to select an action to execute.

Expected Results:  
Appropriate action has to be executed without popup menu.
Comment 1 Ilya Konkov 2012-07-24 07:09:18 UTC
Created attachment 72717 [details]
Sample implementation of the feature

Here is sample implementation of the requested feature.
Basically it checks if there is only one action that has description "<auto>" with only one command. If it's true, then execute this command and return.
Comment 2 Ilya Konkov 2012-09-30 03:55:21 UTC
Never mind, I switched to synergy for clipboard syncing.
Comment 3 Andrew 2012-10-18 07:33:25 UTC
I don't think it should be resolved as invalid because I want this too :) It is very useful to have such kind of auto actions (without any confirmation for specific event).

Maybe I'm wrong, but this function was present in KDE 3.5.10.
Comment 4 Christoph Feck 2012-10-18 08:40:41 UTC
Reopened based on comment #3.
Comment 5 oracle2b 2012-12-12 16:59:26 UTC
I'd like to see this implemented too.
Comment 6 Nate Graham 2023-05-17 00:33:08 UTC
It's a cool idea, but given the lack of movement for so long, I think this is unlikely to be implemented unless someone submits a merge request to do it. Accordingly, I'm going to close this request so that the list of requested features better reflects work in progress or under active consideration. This doesn't mean that the idea is being vetoed, just that there aren't resources to consider implementing it absent volunteer contributions to do so--for which no formal feature request is needed. Thanks for understanding!