-
Notifications
You must be signed in to change notification settings - Fork 39
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
Several problems with "save_on_focus_lost" settings #980
Comments
Sublime Text would automatically save the file otherwise and potentially perform other on_save actions such as trimming trailing whitespace. Addresses #26. See sublimehq/sublime_text#980.
Not really similar, but a systemic problem. Show unsaved changes becomes sort of unusable, because diff is too literal; while user (me at least) probably want to see diff between original state (when file was open) and current one (disregarding any saves in-between); no it has nothing to do with version control systems (file could be already changed from vcs pov, when it was open in ST, or not being tracked by vcs at all). |
Cursor is moved to EOF on when This is annoying in the extreme when switching back and forth between a external terminal window. |
I second this. Got myself into "sudo lock": constantly appearing dialogues asking for sudo password to use |
Related: #3603 |
Closed my #4065 "Do not treat opening command palette / quick panel as focus lost" in favor of this one. |
Command Palette and Revert do not mix well either when save_on_focus_lost is turned on. As soon as the Command Palette is summoned, any pending changes get saved to the file, and subsequently invoking Revert from the Command Palette is flogging a dead horse. The Preference.sublime-settings file has a short definition attached to the setting save_on_focus_lost:
None of those apply when you invoke the Command Palette. No switching to other files or applications happens. |
Using Sublime with Performing a Refactor/Rename that touches multiple file paths will open each of the edited files in Sublime, with focus on the last file. Switching focus to a different app will then only save the last file, not every file that was edited by the To save the files, you have to manually go back and tab through each file in order focus/unfocus to save them, nullifying the purpose of "auto save". The workflow:
I would expect all edited files to be saved on focus lost, I guess this could be achieved by making the The way JetBrains handles a refactor action is to auto save each file, and allowing a single Undo action to revert the entire Rename action, undoing changes to each path touched. I would consider this a bug, but maybe it should be a separate feature request issue? Personally, after getting used to working in a world where manually saving is not a thing anymore I don't think I'd want to migrate to Sublime and re-learn to save again. (sidenote: I'm working on a blog post for migrating from WebStorm -> Sublime, but haven't been able to get Sublime all the way to the "just works" mark yet) |
The
save_on_focus_lost
setting behaves too strict in many situations, causing all of the following:trim_trailing_white_space_on_save
enabled and wanted to invoke the command at the end of the line with some whitespace before, the whitespace would get trimmed completely. Currently, plugins need to disable the settings before opening any kind of panel in order to work around this.Please keep posting similar problems with
save_on_focus_lost
in this issue.Added from comments:
The text was updated successfully, but these errors were encountered: