Bug 434044 - Multi-word searches appear to stop at the first word
Summary: Multi-word searches appear to stop at the first word
Status: CONFIRMED
Alias: None
Product: krunner
Classification: Plasma
Component: general (show other bugs)
Version: 5.21.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Alexander Lohnau
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-06 06:33 UTC by Dan Dascalescu
Modified: 2022-01-30 07:36 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Launcher searching for KDE Menu Editor surfaces other results first (310.81 KB, image/png)
2021-03-06 06:33 UTC, Dan Dascalescu
Details
Yes (44.23 KB, image/png)
2021-03-23 09:06 UTC, Dan Dascalescu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Dascalescu 2021-03-06 06:33:26 UTC
Created attachment 136427 [details]
Launcher searching for KDE Menu Editor surfaces other results first

Searching in the launcher for "KDE Menu Editor" surfaces other results containing "KDE" above "KDE Menu Editor".
Comment 1 Nate Graham 2021-03-08 16:10:49 UTC
Does the same thing happen in KRunner itself?
Comment 2 Bug Janitor Service 2021-03-23 04:33:46 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Dan Dascalescu 2021-03-23 09:06:07 UTC
Created attachment 136978 [details]
Yes
Comment 4 Nate Graham 2021-03-23 12:11:52 UTC
Thanks.
Comment 5 Alexander Lohnau 2022-01-30 07:36:51 UTC
Here the query is stopped, because the first word does not match the name, which is "Menu Editor" while the window name and query is "KDE Menu Editor".

The other ones match, because the exec starts with "kde".

While this shows that there is room for improvement in the runner, the query logic of it has to be ported away from KServiceTypeTrader in the future. Meaning we are currently a bit limited in the parsing logic and would need to re-write it during the port.

My proposal would be to change the name in the desktop file to "KDE Menu Editor" to be consistent with the window name and other internal strings. The generic name can then be "Menu Editor".

What do you think?