Sublime Forum

macOS Window Restoration to Correct "Spaces" on Restart

#1

Apple provides APIs that enable Applications to restore to the desktop “Spaces” [https://www.wikipedia.org/wiki/Spaces_(software)] they were on prior to reboot. All official Apple applications (Terminal, Safari, and TextEdit are a few common examples) support this feature.

For those of us who make heavy use of the Spaces virtual desktop feature, this feature is a massive boon (time saver). Supporting this feature appears to further provide support for restoring to separate screens [https://forum.sublimetext.com/t/window-configuration-is-not-remembered-in-macos-10-9/12728].

While I’ve never personally implemented the feature, an Apple tech support specialist pointed me to this documentation and the “Handling Window Restoration” functions of the NSWindow class.

Supporting this feature for macOS versions of Sublime Text would be sublime.

4 Likes

#2

I would love this feature. For me, this is the only major missing feature from Sublime. I have ten virtual desktop (one for each project) and at least same amount of Sublime instances, and it kills me to move all Sublime windows to their virtual desktops after a reboot.

I could pay e.g. 10 EUR for this feature, just for saved time.

2 Likes

#3

I also would love this feature. I often have one project per space in macOS and rebooting the system or simply restarting Sublime Text means I have to put all my projects back in their proper space.

1 Like

#4

please, please, please implement this. my macbook crashes randomly (separate issue, but still) and it’s such a pain to restore my projects back to their proper spaces. apple applications go back to their proper spaces by default, and it’s such great UX.

sublime text already restores all my windows, even the unsaved tabs (which is awesome!). if it could put my windows back where they belong, it would be even better!

1 Like

#5

This is still an issue on Sublime Text 4. Any chance we can get this bumped up?

0 Likes

#6

This feature was part of the public release of ST4: https://www.sublimetext.com/blog/articles/sublime-text-4

  • Windows will remember their Virtual Desktop/Space/Workspace, controlled by the remember_workspace setting
0 Likes