https://bugs.kde.org/show_bug.cgi?id=511664
Bug ID: 511664
Summary: Find action algorithm leads to unexpected results
Classification: Applications
Product: kate
Version First 25.08.1
Reported In:
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: application
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 186513
--> https://bugs.kde.org/attachment.cgi?id=186513&action=edit
bad order (suggested order drawn)
I came accross this when I wanted to change sessions. I press F2 and start
typing "session".
What happens:
I only get good results when I get to "sessio"
What I would expect:
I get good results already when I type "se" or "ses"
The thing is that the algorithm seem to be looking for finds *s*e*s*i*o*m, so
for "se", it finds for example "kate upward Split viEw" (capitals emphasize
what matches). It also finds "SourcEs: elm" [I think that is what is being
matched - when part of the match is in the prefix, that is in "sources" in this
case, the matched letters are not highlighted, which also sounds like a bug,
should report it separately? - it is visible on the second screenshot, where I
made a red note about it].
That is all great and good, but I think some ordering of the results is in
order. What I would suggest that the results be sorted by whether they contain
"se", "ses", "sess" and so on as it is typed. I assume most people type a word
they look for. If they were looking for "sources: elm", they could get that by
typing "s e". Probably looking for "^ se" and then " se" first would also make
sense, so we first match commands that either start with the string or that
have a word that starts with the string. And while at it, per each such match,
my orderly me might like it if they were sorted alphabetically (now the order
seems random, I guess they are written as they are ordered in the menu?)
--
You are receiving this mail because:
You are watching all bug changes.