Bug 504658

Summary: Klipper does not reset search after selecting an item
Product: [Plasma] plasmashell Reporter: Nicolai Weitkemper <kde-bugs>
Component: Clipboard widget & pop-upAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: nate, qydwhotmail
Priority: NOR Keywords: usability
Version First Reported In: 6.3.5   
Target Milestone: 1.0   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Nicolai Weitkemper 2025-05-22 09:38:37 UTC
SUMMARY
Klipper does not reset search after selecting an item

STEPS TO REPRODUCE
1. Have multiple items in the clipboard history
2. Open Klipper either using a keyboard shortcut or via the panel
3. Search for an item and select it by either clicking on it or hitting Enter
4. Open Klipper a second time

OBSERVED RESULT
The previous search term is still visible

EXPECTED RESULT
The previous search term should be cleared

SOFTWARE/OS VERSIONS
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0

ADDITIONAL INFORMATION
I checked the code but did not find that functionality nor a commit that removed it (by skimming), but I distinctly remember that it used to work like that.
Comment 1 Nate Graham 2025-05-22 15:19:55 UTC Comment hidden (spam)
Comment 2 Nate Graham 2025-05-22 15:20:54 UTC Comment hidden (spam)
Comment 3 Nate Graham 2025-05-22 15:22:21 UTC
Can reproduce.

At the minimum we should pre-select all the text like KRunner does, so you can type a new search term to immediately replace it. But in this case, I do think it would be better to clear the search when selecting an item, or even all the time when closing the popup.