Bug 481592 - Disregard whitespaces when searching for a program to run
Summary: Disregard whitespaces when searching for a program to run
Status: RESOLVED INTENTIONAL
Alias: None
Product: plasmashell
Classification: Plasma
Component: Application Launcher (Kickoff) (show other bugs)
Version: 5.93.0
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-02-20 20:11 UTC by Antti Savolainen
Modified: 2024-02-21 18:31 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antti Savolainen 2024-02-20 20:11:30 UTC
SUMMARY
I often type `kdec` when trying to launch KDE Connect. I see no reason why the search should disregard that search term completely just because I forgot the whitespace. Deranking it to the last position is fine, but disregarding it completely is not.

STEPS TO REPRODUCE
1. Type `kdec` in the Application Launcher

OBSERVED RESULT
Nothing appears in the launcher

EXPECTED RESULT
KDE Connect should show up

SOFTWARE/OS VERSIONS
Linux: Arch Linux
KDE Plasma Version: 5.93.0
KDE Frameworks Version: 5.249.0
Qt Version: 6.7.0
Comment 1 Nate Graham 2024-02-21 18:31:48 UTC
> I see no reason why the search should disregard that search term completely just because I forgot the whitespace
Because the search wasn't implemented that way. :)

There are trade-offs do doing what you want. If we disregard whitespace, the result will be more items matching the search text, and then we'll get different complaints about excessive numbers of matches and bad matches showing up first. So I don't think we can do this as as requested, sorry.

An actionable way to accomplish this is to add "kdeconnect" as a keyword for whatever thing you do want to find. That's feasible, targeted, and appropriate. Feel free to submit a merge request for something like that! And thanks for your understanding.