-
Notifications
You must be signed in to change notification settings - Fork 4
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
Shift-J issue #12
Comments
Thanks for the issue report -- sorry I've let it sit idle for so long. parinfer bugs are low on my priority list for now, mostly because 1) it works "well enough" for me and 2) debugging issues with text synchronization is a lot of work and not very fun 😆. The best/most reliable way to see this fixed would be to send a patch yourself, otherwise I will try and look at it whenever I have a moment of inspiration. |
I also stumbled on this. One can notice that with shift-j the cursor moves to the end of the original line onto a space character. So I tried to add an extra space to the end of the line to see what would happen if the cursor did not end up moving. It worked at first, but then it did not work at other times. Here are the observations:
Peek.2023-05-04.12-45.mp4I've narrowed it to observation that movement in normal mode sets some weird internal state. Changes in insert mode then fixes it. It looks like Delete at the end of the line in insert mode behaves in similar way, it works after changes, but does not work after movement without changes. Maybe we can narrow it down further one day, for now I added following mapping to my config as a workaround: |
The behavior for shit-j is a little unexpected, I think. In the example video, instead of moving the entire map, only the first line of the map is moved and then the parinfer algorithm re-balances everything.
parinfer_shift-j.mp4
The text was updated successfully, but these errors were encountered: