Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Rofi prefers recent over exact, even when both are recent #2080

Closed
2 tasks done
codefaux opened this issue Jan 14, 2025 · 5 comments
Closed
2 tasks done

[BUG] Rofi prefers recent over exact, even when both are recent #2080

codefaux opened this issue Jan 14, 2025 · 5 comments
Labels

Comments

@codefaux
Copy link

Rofi version (rofi -v)

1.7.5

Configuration

https://gist.github.com/codefaux/6b772f2fd749d1fcace67cea9ebb5e7f

Theme

https://gist.github.com/codefaux/2fdd61da2c7be27e06d4d6dcdbec56a7

Timing report

No response

Launch command

rofi -show run

Step to reproduce

  • have both st and steam installed
  • rofi -show run
  • type 'st'

Expected behavior

  • have both st and steam installed
  • rofi -show run
  • type 'st'
  • know that 'st' will be run every time, even if 'steam' and other commands beginning with 'st' exist

Actual behavior

  • have both st and steam installed
  • rofi -show run
  • type 'st'
  • observe that often 'steam' will sometimes be preferred over 'st' even if 'st' is a very recent run

Additional information

I feel like users should expect exact matches to be preferred over loose matches, or at least that a user expecting an exact match to be respected should have said expectation honored.

If it feels 'breaking' to change behavior as such, perhaps add a -prefer-exact argument?

Using wayland display server protocol

  • No, I don't use the wayland display server protocol

I've checked if the issue exists in the latest stable release

  • Yes, I have checked the problem exists in the latest stable version
@codefaux codefaux added the bug label Jan 14, 2025
@DaveDavenport
Copy link
Collaborator

DaveDavenport commented Jan 14, 2025

Have you tried enabling sorting and setting matching algorithm? The provided config has it turned off.

I am not sure how this is a bug? it feels more like either misconfiguration or a feature request?

rofi -show run  -sort -sorting-method fzf

for me prefers st over steam even when steam has a higher 'count' in the run-cache.

@DaveDavenport
Copy link
Collaborator

Please open discussion on more questions, or a feature request if needed.

@DaveDavenport DaveDavenport closed this as not planned Won't fix, can't repro, duplicate, stale Jan 14, 2025
@DaveDavenport
Copy link
Collaborator

rofi-2025-01-14-2229-00000

Here steam is used many times more then st.

@codefaux
Copy link
Author

You're right, of course. My understanding was lacking, apologies for the wasted time. I did some searching and got incorrect information. I'm unfamiliar with the Github Discussions feature, I'll educate myself for the future.

Thank you.

@DaveDavenport
Copy link
Collaborator

No problem.

The discussion forum is linked in the template of the issue:

If you are unsure, please use the
discussion forum
first. It is easy to upgrade a question to an issue in github.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants