-
Notifications
You must be signed in to change notification settings - Fork 2
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
What exactly is evaluated and invalidated #39
Comments
also could there a way to disable this altogether ? |
It is supposed to track when an evaluated code block has been modified since evaluation. The thing is it uses the |
do you remember a commit where it would have been working right ? |
For sure it worked when I wrote that comment: #15 (comment) since there's a video, I believe it worked here as well: #15 (comment) . |
If you want to debug that, I'd advise setting the log level to "debug", that way the evaluated chunks will have a clear unmistakable highlight (they get the |
it seems the marks are updated only after a shift to normal mode from insert mode was just playing around with the following autocmd enabled
|
is it intended that chunk invalidation gets called at every keystroke |
Yes, it was intended. Wether this is wise is another question. |
i'm having a little trouble wrapping my head around how its structured.
the event so how does it end up being called every keystroke ? |
*every keystroke in insert mode |
okay nvm it just occured to me to look for an autocmd when i was done typing this |
okay not exactly a solution , but a compromise would be to have set the event at nvim-smuggler/lua/smuggler/ui.lua Lines 440 to 443 in 43fb386
|
okay i thought it worked but nope , that still does the wrong thing |
okay here is something that works instead of finding entire chunks, if we treat every keystroke as a "single character chunk" find intersections and invalidate them. |
now when i edit them as such ...
I change 3rd line by adding a space after it , it gets invalidated.
but if i change second line after that it does not get invalidated.
other changes introduce some invalidations in other nearby lines and its a little confusing as to what the marks exactly mean
The text was updated successfully, but these errors were encountered: