Save state for closed windows
First things first: Thank you for this very helpful extension! It solves a very particular itch I was having. And in my initial tests it works reliably with different applications whereas Smart Auto Move did not work at all with VS Code for example.
One thing I'd wish for would be to restore windows for applications which are not running at the time of the display change. For example:
- VS Code open on large monitor, 50% on the right side
- Close VS Code
- Unplug monitor
- Open VS Code, it remembers on the small screen I had it running as fullscreen
Is this a feature you're interested in? I might be able to help or provide a PR
Hi @thomasaull,
I really liked the idea, sounds useful. But I am not sure how difficult it would be to implement. Right now, the extension has no idea about the application. It only watches the window and restores it when a change in screen layout occurs.
To implement what you are suggesting, extension should know the application and type of window (as the window id or any other unique identifier for the window will change after closing it). Also to restore when the window is opened, extension should monitor such events (currently it checks for screen resolution periodically and restores when a change is detected).
If you could implement it somehow without breaking the current functionality, we could get it merged.