carapace-sh / carapace-bin

multi-shell multi-command argument completer
https://carapace.sh
MIT License
885 stars 48 forks source link

(Package request) Zoxide #1892

Closed cbr9 closed 1 year ago

cbr9 commented 1 year ago

Request

Hello,

Would it be possible to add zoxide completion, querying the local zoxide database?

Proposed solution

No response

Anything else?

No response

rsteube commented 1 year ago

Maybe. There were some issues where the inserted value needs to match the already present prefix on the command line. Bash has been pretty picky on this, but I think I've got the wordbreaks now working well enough for this to not be a problem. Having different display values than what would have to be typed is also normally not a good idea as Bash has no menu completion where you can cycle through (so you don't know what to type).

Think I had a look at zoxide in the past where some of this was an issue, but it could be fine now.