Bug 460698

Summary: Clipboard actions do not get executed on selection but on copy - regression
Product: [Plasma] plasmashell Reporter: Mariusz Dykierek <mariusz_dykierek>
Component: Clipboard widget & pop-upAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: nate, p.r.worrall
Priority: NOR Keywords: regression
Version First Reported In: 5.27.5   
Target Milestone: 1.0   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Mariusz Dykierek 2022-10-19 08:46:12 UTC
SUMMARY
I used to dobleclick a text and execute several actions on it. Now I have to use the copy option or shortcut.
The description reads "Show action popup menu Immediately on selection" and I want it on selection. It should save me time

STEPS TO REPRODUCE
1. Double click text for which an action is defined

OBSERVED RESULT
Nothing

EXPECTED RESULT
Popup menu with actions defined for selection.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Kubuntu 22.10, Plasma 5.26.1
(available in About System)
KDE Plasma Version: 5.26.1
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.6

ADDITIONAL INFORMATION
Comment 1 Paul Worrall 2023-05-31 09:50:36 UTC
Can reproduce:

1. Create an action with a simple match pattern, e.g.  a+
2. Select "Show action popup menu Immediately on selection"
3. Open Kate and select some text that matches the pattern, e.g. aaa

OBSERVED RESULT
Nothing happens

ADDITIONAL INFORMATION
Action is triggered only when selected text is copied to clipboard

Operating System: Arch Linux 
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.9
Kernel Version: 6.3.4-arch1-1 (64-bit)
Graphics Platform: both (X11 or Wayland)
Comment 2 Paul Worrall 2023-05-31 10:02:21 UTC
The bug is that you can select the configuration described without also selecting "Keep selection and clipboard the same" and "Text Selection: Always save in history".  With those selected, the action is triggered immediately on selection.