Bug 359982 - KRunner only shows an item from history instead of all resolving all queries
Summary: KRunner only shows an item from history instead of all resolving all queries
Status: RESOLVED DUPLICATE of bug 376666
Alias: None
Product: krunner
Classification: Plasma
Component: general (show other bugs)
Version: 5.5.4
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Kai Uwe Broulik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-02 04:24 UTC by Sudhir Khanger
Modified: 2020-10-10 15:59 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
kde: Usability?


Attachments
Only one item is shown (6.99 KB, image/png)
2016-03-02 04:26 UTC, Sudhir Khanger
Details
complete list of history (24.32 KB, image/png)
2016-03-02 04:26 UTC, Sudhir Khanger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sudhir Khanger 2016-03-02 04:24:14 UTC
I have various statements in KRunner history that begin with same keyword. KRunner only shows one item at a time and would resolve the other one as you continue to type and reach the differentiating letter.

Reproducible: Always

Steps to Reproduce:
1. Alt+F2 Open KRunner
2. Search if you have several items that begin with similar keywords
3.

Actual Results:  
KRunner only shows one item at a time although there are other statements with similar beginning keyword.

Expected Results:  
If I type k then it should show all items that begin with k.

Please see attached screenshots.
Comment 1 Sudhir Khanger 2016-03-02 04:26:02 UTC
Created attachment 97634 [details]
Only one item is shown
Comment 2 Sudhir Khanger 2016-03-02 04:26:45 UTC
Created attachment 97635 [details]
complete list of history
Comment 3 Kai Uwe Broulik 2016-03-07 13:04:48 UTC
Well, you entered "killall ksuperkey", so that's what it shows. I won't change the way the history works as of now, sorry.
Comment 4 Sudhir Khanger 2016-03-07 15:57:16 UTC
Kai you are miunderstanding. I DIDN'T enter "killall ksuperkey" I started entering one letter at a time and at kil it responded with "killall ksuperkey". Whereas as soon as I entered k it should have shown all the previous items that started with k. As a matter of fact there are several killall items in my history which should have been shown.
Comment 5 Kai Uwe Broulik 2016-03-07 16:00:06 UTC
No, what it should do is search for "k", if you pressed backspace it would do just that. I don't think it should search the history and mix that with the actual search results.
Comment 6 Sudhir Khanger 2016-03-07 16:16:26 UTC
Top rows should always be occupied by the most accessed items otherwise accessing most frequent tasks require (steps required in accessing most frequent task + X steps).

Current number of steps to do most frequent task = steps required in accessing most frequent task + X steps

What it should be = steps required in accessing most frequent task.

For example, if I want to search "killall -s SIGSEVG plasmashell" but KRunner shows "killall ksuperkey." Here I have to type full word killall, space and dash sign. So total of 8 keywords are required to run the former command.

If KRunner showed both commands as soon as I entered k then 1 click for k and 1 click for down-arrow. Total 2 steps.

Thank you for taking time to look into it Kai.
Comment 7 Thomas Pfeiffer 2016-03-10 13:57:17 UTC
The number of steps to perform a frequent task is either the number of tasks performed since the last time the task was performed +1, or the number of characters needed to differentiate the task you want to perform from others in the history, whichever is lower.

If entering shell commands is a frequent task for you, maybe Yakuake is the better choice than KRunner?
Comment 8 Sudhir Khanger 2016-07-05 04:27:11 UTC
Another thing I noticed is when you first start typing the very first and only result you are shown is probably the last used applications.

So If I opened KTorrent last time and I enter k in KRunner I am shown only a singly entry that is KTorrent. A better way would be to show history + rest of the searchable item. So it goes like following.

k - last search app ktorrent in my case.
k+o - konsole
k+o+n - konsole
k+o+n + t - kontact

I would think that the easiest UI for users is going to be first showing items from history and then rest of the items that match that query.

I wonder why we only show either history or searchable items. Why not show them all? First history items and then searchable items in the KRunner list.

We name everything with a k and often several apps have 3 common letters if not more like kontact, konsole, konversation, etc. If you are only shown history then the minimum query required to resolve kont is 4.
Comment 9 Alexander Lohnau 2020-10-10 15:59:02 UTC

*** This bug has been marked as a duplicate of bug 376666 ***