You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there an existing way to show the first suggestion as "virtual text", similar to how zsh-autosuggestions does it
See example:
I've combed through the documentation but I haven't found any way described to achieve this.
I'm pretty alright with shell scripting, but ZLE and zstyle elude me, so I'm unsure where to even begin here.
# If there was a highlight, remove it_zsh_autosuggest_highlight_reset() {
typeset -g _ZSH_AUTOSUGGEST_LAST_HIGHLIGHT
if [[ -n"$_ZSH_AUTOSUGGEST_LAST_HIGHLIGHT" ]];then
region_highlight=("${(@)region_highlight:#$_ZSH_AUTOSUGGEST_LAST_HIGHLIGHT}")
unset _ZSH_AUTOSUGGEST_LAST_HIGHLIGHT
fi
}
However I assume it would have to be hooked to run after the fact in order to apply the styling properly.
It is unclear to me from the documentation and looking over the code if there is an existing way to hook this.
I'm really sorry to bother you with this, I fully realize this is - to use the colloqualism - a skill issue, on my part.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is there an existing way to show the first suggestion as "virtual text", similar to how
zsh-autosuggestions
does itSee example:
I've combed through the documentation but I haven't found any way described to achieve this.
I'm pretty alright with shell scripting, but ZLE and zstyle elude me, so I'm unsure where to even begin here.
I did find the function responsible for doing this in
zsh-autosuggestions
.However I assume it would have to be hooked to run after the fact in order to apply the styling properly.
It is unclear to me from the documentation and looking over the code if there is an existing way to hook this.
I'm really sorry to bother you with this, I fully realize this is - to use the colloqualism - a skill issue, on my part.
Beta Was this translation helpful? Give feedback.
All reactions