Skip to content
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

lost cursor after beautify ruby #7

Closed
mirrorwis opened this issue Feb 20, 2012 · 6 comments
Closed

lost cursor after beautify ruby #7

mirrorwis opened this issue Feb 20, 2012 · 6 comments

Comments

@mirrorwis
Copy link

Sublime Text 2 will lost cursor focus after beautify ruby. It's difficult to find last working line, especially when the file has lots of lines. I prefer the way that 'Reindent Lines' does.

@chmurph2
Copy link

+1

@CraigWilliams
Copy link
Owner

I agree. The cursor moves to the end of the file each time. This is something I will fix soon.

@CraigWilliams
Copy link
Owner

Cursor position is now preserved after script execution. Window scrolls to center the cursor in the view.
-> 57f92f5

@CraigWilliams
Copy link
Owner

@andyao, @chmurph2 - can you confirm this is working correctly for you? Thanks!

@chmurph2
Copy link

This is working. I find it a bit jarring when the window scrolls/re-centers, though. Ideally nothing would re-center or scroll, but I'm not sure if you can avoid that.

@CraigWilliams
Copy link
Owner

That is a good point. If I take that out, the window position is set to the top of the file which is also not ideal. I'll keep searching for a better way to do this. Closing this issue for now. Thanks again for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants