Bug 58525

Summary: Automatic execution of actions.
Product: [Plasma] plasmashell Reporter: kdebugs
Component: Clipboard widget & pop-upAssignee: Esben Mose Hansen <kde>
Status: RESOLVED INTENTIONAL    
Severity: wishlist CC: albi, dimsuz, noahadvs
Priority: NOR    
Version First Reported In: 5.15.3   
Target Milestone: 1.0   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Patch to add the desired functionality to klipper.

Description kdebugs 2003-05-15 15:03:05 UTC
Version:            (using KDE KDE 3.1.1a)
Installed from:    Compiled From Sources

I use manual actions for Klipper, but it would be nice if Klipper wouldn't prompt if there's only one action. For example ^[a-z]+\([1-9]\)$ indicates a man page, and as soon as I press alt+ctrl+r it should just open that man page, because that's the only action specified anyway.

Of course this is too annoying if you don't use manual actions, so an option for automatic opening when there's only one action specified would be the best.
Comment 1 kdebugs 2003-05-16 02:07:39 UTC
Created attachment 1592 [details]
Patch to add the desired functionality to klipper.

This attachment adds the following options to Klipper:
- If an action is invoked (either manually or not) and only one pattern and one
command applies to the text in the clipboard, always run that command.
- If an action is invoked (either manually or not) always run the first command
from the first pattern that matches.

The description of the options (in the configuration dialog) is perhaps a bit
unfortunate though.

For the second point patterns and commands have to be ordered of course, so it
is now possible to move the patterns and comments around. 

A new shortcut key has been defined also (by default ctrl+alt+shift+r), which
forces a popup, so you can open .html by default with konqueror, only in some
special cases you can force the popup to use mozilla. 

The patch is against the 3.1.1a source.
Comment 2 Esben Mose Hansen 2004-11-20 18:38:01 UTC
The patch doesn't apply anymore. Anyway, I would rather get rid of that annoying popup alltogether, which would also fix this bug.
Comment 3 Dmitry Suzdalev 2009-04-13 11:59:20 UTC
Agreed, that popup should be eliminated :) I plan to do something about it in near future...
Comment 4 Witold Sosnowski 2013-08-18 13:53:20 UTC
Hi there.

I'm using Logitech G510s keyboard and it has LCD panel. I would like to display my clipboard content on it, but right now Klipper cannot do it because of that popup. I'm commenting here so that you just knew that there are real use cases for this setting.

Without it, I will probably be forced to write a daemon checking clipboard content every second and it's the ugliest solution possible.
Comment 5 Noah Davis 2023-08-10 20:41:28 UTC
This bug is for KDE 3.1.1a, not for Plasma 5.15.3. I don't think we should add this option because many actions won't be appropriate for automatic activation, even if there's only one. We'd need options for each individual action to keep users from accidentally doing something unsafe. There doesn't seem to be much demand for this feature, so I'm marking it as resolved and intentionally not implemented.