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

[Feature] Add "reject no match" support #346

Open
MithicSpirit opened this issue Jun 2, 2023 · 3 comments
Open

[Feature] Add "reject no match" support #346

MithicSpirit opened this issue Jun 2, 2023 · 3 comments

Comments

@MithicSpirit
Copy link
Contributor

Would be nice if bemenu had a flag to prevent output that does not match any of the inputs. This should work similarly to these two dmenu patches together: reject no match and restrict return. Together, these two patches both prevent the user from inputting text that has no resulting matches and from using S-RET to print the current filter text (which often does not match exactly with any of the options).

These are primarily useful for using bemenu as a form of interface/selection screen, where invalid inputs are nonsensical.

@merrittlj
Copy link
Contributor

By "reject no match", you mean not allowing the user to input filter text that would result in no matches? This seems pretty easy to implement, if this is what you mean exactly.

@MithicSpirit
Copy link
Contributor Author

MithicSpirit commented Oct 11, 2023

Yes, though I think that it would also be useful to be able to disable S-RET and selecting multiple options (as a separate flag like in dmenu, or combined into the same flag as reject no match). Those sound even easier to do.

@Co3co
Copy link

Co3co commented Oct 21, 2023

Are there plans to implement this? It's been a while since the issue was opened.

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

No branches or pull requests

3 participants