zsh-autocomplete
zsh-autocomplete copied to clipboard
"Do you wish to see all Possibilities?" triggered with group description colors
Discussed in https://github.com/marlonrichert/zsh-autocomplete/discussions/646
Originally posted by har-si September 28, 2023
I added the below line to my .zshrc
to change the color of the group description in my completion (described in #618 ):
zstyle ':completion:*:*:descriptions' format '%F{blue}%d%f'
The group description color changes to Blue, but it triggered the "Do you wish to see all __ Possibilities?" prompt which is very annoying when typing your commands.
When I removed this zstyle ':completion:*:*:descriptions' format '%F{blue}%d%f'
line in my .zshrc
, everything went back to its normal behavior (no more annoying prompt).
I have read from previous discussion #625 that this is a bug. Is it possible to disable the "Do you wish to see all __ Possibilities?" prompt while having colored group descriptions?
btw, I installed zsh-autocomplete manually and my zsh version is 5.8 (x86_64-debian-linux-gnu).
Thanks a lot!
Removing one instance of :*
fixes this issue for me in most – but not all – cases:
zstyle ':completion:*:descriptions' format '%F{blue}%d%f'
Hah, I think I found a method that is working: using escape codes for the ansi colors instead of %F{blue}
:
zstyle ':completion:*:*:descriptions' format $'\033[1;34m%d\033[0m'
This effectively achieves the same effect, but does not result in the "do you wish to see all possibilities" prompt
Hah, I think I found a method that is working: using escape codes for the ansi colors instead of
%F{blue}
:zstyle ':completion:*:*:descriptions' format $'\033[1;34m%d\033[0m'
This effectively achieves the same effect, but does not result in the "do you wish to see all possibilities" prompt
This is a great workaround. It does not trigger the "do you wish to see all possibilities" prompt. Thank you for the help @chrisgrieser
Hi all, I'm also looking for a way to disable the prompt.
In my case it gets triggered when using fasd
(e.g. z
- z
followed by space
) and other commands that have a long completion.
% z
zsh: do you wish to see all 291 possibilities (291 lines)?
As the prompt gets triggered while typing it sometimes 'steals' keystrokes interrupting what I'm typing.
I now have zstyle ':autocomplete:*' delay 0.15
which helps a bit with the "stealing" aspect but it's still annoying so I would like to identify a way to avoid that confirmation prompt entirely.
I also tried asking here and there but so far haven't found a way through.
Does either of you have suggestions or additional pointers?