AndreasBackx / StyleSorter

CSS and SCSS attribute type sorter for Sublime Text 3. THIS PROJECT HAS BEEN ABANDONED.
8 stars 3 forks source link

Undo sorting #3

Open AndreasBackx opened 9 years ago

AndreasBackx commented 9 years ago

The sorting command calls the ReplaceFile command to update the selected view. But when the ReplaceFile command is undone, everything in the view is selected and Sublime Text scrolls to the end of the view. This can be quite frustrating if you regularly undo the sorting, when you're debugging for example.

If someone knew a way to make it so when undoing the ReplaceFile it stays on the same viewport as before and doesn't select anything. Posting a comment or a pull request is greatly appreciated.