Replies: 1 comment
-
Autocomplete doesn't do this directly. It simply tells Zsh's completion system what formatting to use for this. Most of it is done over here. However, you can find a much simpler, more practical example in my Zsh Edit plugin. Have a look there at the functions |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to build another (unrelated) tool, and want to display colored code under the prompt with
bat
butzle -R
cannot output newlines or control sequences, so I'm trying to find out how to do it. I see that zsh-autocomplete does it but after some time digging into the code still can't find what part of the code does that. I'm pretty new to zsh widgets and all this terminal manipulation looks pretty arcane to me, at least at first.Beta Was this translation helpful? Give feedback.
All reactions