khard icon indicating copy to clipboard operation
khard copied to clipboard

Suggestion: use fzf for interactive selection

Open pacien opened this issue 1 year ago • 1 comments

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.

  • https://github.com/lucc/khard/issues/140
  • https://github.com/lucc/khard/issues/141

pacien avatar Sep 30 '23 16:09 pacien

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.

lucc avatar Oct 01 '23 19:10 lucc