-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Keep cursor position when tidying code #1223
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
Comments
Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, be sure to follow the issue template if you haven't already. |
thanks for the suggestion! i think this feature is a little hard to add because the number of characters/lines might change, and therefore putting the cursor in the "same" position might actually be a different position. i was trying to find example code for why implemented this with |
@catarak I can Work On This Feature if its not already taken. |
#1240 raised a pr that fixes this |
I notice that with #1240 the cursor jumps forward in the line when running tidy code. I believe the fix for this would be removing the part that adds |
Hey @catarak, Screen.Recording.2021-02-22.at.11.00.05.PM.mov |
Thanks for posting the video! The library that this project is currently using, |
Hey @catarak , |
Never mind, |
Nature of issue?
Feature enhancement details:
The tidying code feature resets the cursor back to the beginning of the file that was tidied. For long files, this can be irksome, because you then have to scroll back to your position. It would be helpful to keep the cursor position from before the tidying.
The text was updated successfully, but these errors were encountered: