Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: completion: lookup argument using descriptions



On Sun, Jun 13, 2021 at 12:43:46 +0200, Roman Perepelitsa wrote:

>> How do you know about the 'search' option?
> 
> I don't remember how I discovered it. Now I just know it exists.

There's more...

zstyle ':completion:*' menu select=1 interactive

The last one is really interesting, although I experience the same
(1) problem as described and presented here:
https://www.reddit.com/r/zsh/comments/8ur9rl/space_in_interactive_menu_completion/
https://asciinema.org/a/189304
and
(2) blocks tab from going into menu selection (one have to use arrows),
(3) doesn't start again after using arrows,
so I won't use this.

> For completeness sake, it's also possible (albeit not easy) to display
> zsh completions using an external command. For example, in my zsh
> setup completions are displayed with fzf. Here's how it looks:
> https://asciinema.org/a/419996.

Thanks a lot for new ideas:) It took me another 2 days to review
fzf-related projects  and I've ended up  with:

bindkey -M emacs '^f' fzf_completion	(from fzf-tab-completion)
bindkey -M emacs '^R' fzf-history-widget (fzf/shell/key-bindings.zsh)

These 2 seems reasonable and working well when called on purpose:
- fzf_completion to search for descriptions of "-- described" options,
- fzf-history-widget for convenience.

Other fzf completions seem disruptive for me and break my CLI flow,
making the work less smooth and effectively slower than pure zsh.

-- 
Tomasz Pala <gotar@xxxxxxxxxxxxx>




Messages sorted by: Reverse Date, Date, Thread, Author