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

Suggestion: use fzf for interactive selection #329

Open
pacien opened this issue Sep 30, 2023 · 1 comment
Open

Suggestion: use fzf for interactive selection #329

pacien opened this issue Sep 30, 2023 · 1 comment
Labels
enhancement help wanted interface changes the user interface in a non trivial way

Comments

@pacien
Copy link

pacien commented Sep 30, 2023

Suggestion:

Khard displays some interacting prompt when a search query yields multiple
choices for example.

The current prompt has a bunch of UX issues, such as:

  • showing too many lines or columns, overflowing the terminal window,
  • relying on copying some numeric index manually,
  • not being searchable.

I think this prompt could instead leverage fzf, an interactive fuzzy finder
prompt (or a similar alternative). Some Python bindings exist.

It looks like this:
pyfzf demo

Related issues:

Someone worked on a wrapper script using fzf as the selection prompt some years
ago. Though I think it would be nicer to have it by default.

@lucc
Copy link
Owner

lucc commented Oct 1, 2023

Also related: #326. When this is merged we will have one central place and can just replace pythons input() with fzf somehow.

This is not interesting to me but if somebody is interested it can be added as an optional feature or so. I am happy to help with the plan though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement help wanted interface changes the user interface in a non trivial way
Projects
None yet
Development

No branches or pull requests

2 participants