bew / dotfiles

All my dotfiles in one place!
44 stars 3 forks source link

~As-you-type completion in shell (but not everywhere?) #74

Open bew opened 3 years ago

bew commented 3 years ago

Existing plugin: https://github.com/marlonrichert/zsh-autocomplete (note: nice plugin organization!)

BUT NOTE that it seems to come with its own completion engine, and its key bindings, and its own completion config (may be interesting to take some things!)... I'd like to have like vim: C-n/p and M-hjkl, allow the use of TAB to enter the interactive completion system (the builtin from zsh).

To me, the ideal plugin should do only auto complete thing, not override everything, do its own config, come with its own widgets, ....


And "not everywhere", because some completion functions are expansive, I wouldn't want to have them auto-triggered when I don't need them (e.g: nix run pkgs#<TAB>)

bew commented 3 years ago

Since https://github.com/bew/dotfiles/commit/325f1eb8acabb1b610802d780612ad8f3cb866b4 I enabled the interactive mode of the menu completion system of zsh, and I can refine the listed completions as-I-type once I triggered the completion menu.

(it was builtin, crazy right??)

Though it's a bit buggy, like: https://github.com/bew/dotfiles/blob/325f1eb8acabb1b610802d780612ad8f3cb866b4/zsh/rc/completions.zsh#L29-L42

And a few others (look for bug report & feature req in that file)