lucc / khard

Console vcard client
https://khard.readthedocs.io/en/latest/
GNU General Public License v3.0
600 stars 65 forks source link

Suggestion: use fzf for interactive selection #329

Open pacien opened 1 year ago

pacien commented 1 year ago

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:

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 commented 1 year ago

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.