Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Do you wish to see all Possibilities?" triggered with group description colors #654

Open
marlonrichert opened this issue Oct 20, 2023 Discussed in #646 · 4 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@marlonrichert
Copy link
Owner

Discussed in #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.

autocompleteBug

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!

@marlonrichert marlonrichert added the bug Something isn't working label Oct 20, 2023
@marlonrichert marlonrichert self-assigned this Oct 20, 2023
@chrisgrieser
Copy link

Removing one instance of :* fixes this issue for me in most – but not all – cases:

zstyle ':completion:*:descriptions' format '%F{blue}%d%f'

@chrisgrieser
Copy link

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

@har-si
Copy link

har-si commented Dec 19, 2023

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

@unode
Copy link

unode commented May 23, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants