Bug 418529 - Capture shortcuts in k-menu
Summary: Capture shortcuts in k-menu
Status: RESOLVED NOT A BUG
Alias: None
Product: Spectacle
Classification: Applications
Component: General (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords:
: 418541 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-03-06 09:28 UTC by Rohde Fischer
Modified: 2020-03-09 08:22 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rohde Fischer 2020-03-06 09:28:06 UTC
I think the title describes it pretty well. Please do not add the "Capture xxx - Spectacle" shortcuts to my K-Menu. They interfere with what I'm actually searching for, and are completely useless. It's pure noise.


STEPS TO REPRODUCE
1. Open the k-menu
2. E.g. if you have Caprine installed type "Cap" to find it

OBSERVED RESULT
4 top entries are Capture XXX - Spectacle

EXPECTED RESULT
Caprine and other apps beginning with Cap - hint! I'm in my application menu, I'm looking for applications!


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
Kubuntu 19.10
Comment 1 David Redondo 2020-03-06 09:57:29 UTC
That's because the menu automatically list in every action defined in an applications .desktop file in the search results. They are not part of the menu themselves. You should see similar results if you search for "New". I don't know if kickoff can be configured to not list those in the search result
Comment 2 Kai Uwe Broulik 2020-03-06 11:01:12 UTC
Fwiw there's a patch to fix the scoring: https://phabricator.kde.org/D27886
Comment 3 Rohde Fischer 2020-03-06 12:14:35 UTC
(In reply to David Redondo from comment #1)
> That's because the menu automatically list in every action defined in an
> applications .desktop file in the search results. They are not part of the
> menu themselves. You should see similar results if you search for "New". I
> don't know if kickoff can be configured to not list those in the search
> result

Oh my, you are right, what a nasty "feature". Why would anyone do that :( Sorry for the noise on this one then.
Comment 4 Kai Uwe Broulik 2020-03-06 13:08:17 UTC
*** Bug 418541 has been marked as a duplicate of this bug. ***
Comment 5 Kai Uwe Broulik 2020-03-09 08:22:45 UTC
Git commit 18422ededcc9ec8f3e0b80e75228fe7b4a487829 by Kai Uwe Broulik.
Committed on 09/03/2020 at 08:19.
Pushed by broulik into branch 'Plasma/5.18'.

Demote jump list actions to PossibleMatches

HelperMatch type was used to identify them in run but this also causes them to score way higher than anything else (except ExactMatch).

Differential Revision: https://phabricator.kde.org/D27886

M  +9    -5    runners/services/servicerunner.cpp

https://commits.kde.org/plasma-workspace/18422ededcc9ec8f3e0b80e75228fe7b4a487829