-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Conflict with zsh-users/zsh-syntax-highlighting
#483
Comments
I have also submitted this bug here |
I'm not able to reproduce this either. What are you using to trigger |
When z-sy-h is enabled after autosuggestion widgets have already been bound, partial accepting the last part of a suggestion will result in that string being duplicated. I was able to reproduce using the following versions of the two plugins: - z-sy-h: dde84e1b25f059a298ce3189cddfd0778f998df3 - z-asug: ae315de and running the following commands interactively one after another: ``` zsh -df % source path/to/zsh-autosuggestions.zsh % source path/to/zsh-syntax-highlighting.zsh % bindkey -e % bindkey <alt-f> # shows `bindkey -e-e` The order of the `source` statements matters and the issue cannot be reproduced if the two source statements are executed together on one line. The problem is very similar to this one: #126 (comment) See GitHub issue #483
When z-sy-h is enabled after autosuggestion widgets have already been bound, partial accepting the last part of a suggestion will result in that string being duplicated. I was able to reproduce using the following versions of the two plugins: - z-sy-h: dde84e1b25f059a298ce3189cddfd0778f998df3 - z-asug: ae315de and running the following commands interactively one after another: ``` zsh -df % source path/to/zsh-autosuggestions.zsh % source path/to/zsh-syntax-highlighting.zsh % bindkey -e % bindkey <alt-f> # shows 'bindkey -e-e' ``` The order of the `source` statements matters and the issue cannot be reproduced if the two source statements are executed together on one line. The problem is very similar to this one: #126 (comment) See GitHub issue #483
Hi folks, first of all, amazing work that you guys are doing. I came across this issue, but I don't know for sure If is the same. I record a gif to show what is happening. What I did, typed UPDATE: I gave I try to the branch |
@weslley39 I think the original poster was describing the issue from this gif: I've opened a related issue (https://github.com/zdharma/fast-syntax-highlighting/issues/177) on the plugin I use for syntax highlighting. Weirdly I haven't been able to repro the same bug you're seeing on my machine but I have a coworker with a very similar setup who has reproed - http://g.recordit.co/Z7NTQJ0lp4.gif |
In the meantime, a temporary workaround that seems fine so far on my machine is to use @elony314 would be curious if switching to https://github.com/zdharma/fast-syntax-highlighting fixes the issue for you |
(Or try zsh-syntax-highlighting's
|
@ericfreese |
@ewen-goisot |
Whether
FWIW, in z-sy-h's case, sourcing |
Separately, the z-sy-h redrawhook branch was merged this week, so anyone who saw z-asug issues that were related to z-sy-h should update z-sy-h to latest master and see if the problems persist. |
it can become very slow, because the sourcing time does not increase linearly (it's something between quadratic and exponential: if I run it 50 times, the last one needs 111.55 seconds for me. |
> though highlighting would be computed multiple times, which would result in slowness
it can become very slow, because the sourcing time does not increase linearly (it's something between quadratic and exponential: if I run it 50 times, the last one needs 111.55 seconds for me.
Replied to that over on zsh-users/zsh-syntax-highlighting#625.
|
Describe the bug
There are conflicted between
zsh-users/zsh-syntax-highlighting
andzsh-users/zsh-autosuggestions
. With both plugins activated, if one continuously usesZSH_AUTOSUGGEST_PARTIAL_ACCEPT_WIDGETS
, the last word of the suggestion will be duplicated.To Reproduce
Steps to reproduce the behavior:
Now, input
cd
and continuously useZSH_AUTOSUGGEST_PARTIAL_ACCEPT_WIDGETS
until the end of the line. Instead of get the completeTest1/Test2
, theTest2
part will be duplicated.Expected behavior
cd Test1/Test2
Actual behavior
Desktop
The text was updated successfully, but these errors were encountered: