Result ordering: entries where match is earlier in string should be favored #2205
Unanswered
birgersp
asked this question in
(Possible) Issues
Replies: 1 comment 8 replies
-
|
rofi has a build in print screen function you can use. Can you pastebin your configuration and rofi version? |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Lets say you have multiple windows open. These are their titles (screenshot from my panel):
Now when you launch rofi in "window mode", and you enter "bar" in the search, the preferred match should in my opinion be the "bar" entry.
But, alas, this is not necessarily the case;
(sorry for the ugly photo, "print screen" is disabled while the rofi menu is showing)
I propose that when entries have an equal ordering score (which I assume these two entries have?), the one where the index of the search string is lesser, should win. My rationale is that the user probably prefers this match.
For what it's worth, the "bar" is the top match if it is the most recently active window. IMO the "search is a the beginning of match" should outweigh it.
(To produce my screenshot I made two folders on the Desktop, and opened each of them in separate windows of the file browser)
Beta Was this translation helpful? Give feedback.
All reactions