Zsh Mailing List Archive
Messages sorted by:
Re: completion: lookup argument using descriptions
- X-seq: zsh-users 26775
- From: Tomasz Pala <gotar@xxxxxxxxxx>
- To: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- Cc: Mikael Magnusson <mikachu@xxxxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: completion: lookup argument using descriptions
- Date: Wed, 16 Jun 2021 12:04:21 +0200
- Archived-at: <https://zsh.org/users/26775>
- In-reply-to: <CAN=4vMpv63K-HKxDBq2VzxbqUo5sySwO14OAgSJ42CpJ-sgCTA@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <20210610093007.GA6653@polanet.pl> <CAN=4vMqCc5UsG73s3PdQzW_aqAf0sak4SowSonbK8aif+A_2kg@mail.gmail.com> <CAHYJk3TyujHtm8_kOOQ9FBkKQkHN0SbOECtP1JZW8wp81WGCyA@mail.gmail.com> <20210613100602.GA27466@polanet.pl> <CAN=4vMpv63K-HKxDBq2VzxbqUo5sySwO14OAgSJ42CpJ-sgCTA@mail.gmail.com>
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.
zstyle ':completion:*' menu select=1 interactive
The last one is really interesting, although I experience the same
(1) problem as described and presented here:
(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:
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: