Amethyst
Amethyst copied to clipboard
Option to keep primary window size if it is the only window open
Currently, when you close all windows but the primary window, the primary window expands to take up the entire screen. It would be good to have an option that would leave the primary column unchanged, even if it was the only window open.
My motivation is that resizing windows is often undesirable since it rearranges certain elements. I would prefer to have a fixed window size for my primary, and let the secondary column be blank.
This wouldn't be too hard to implement by simply making a custom tall layout.
This line https://github.com/ianyh/Amethyst/blob/master/Amethyst/AMTallLayout.m#L48
CGFloat mainPaneWindowWidth = round(screenFrame.size.width * (hasSecondaryPane ? self.mainPaneRatio : 1));
checks whether there is a secondary pane, and sets the main pane width to full if there is none.
To implement what you are asking for you could simply take out the conditional
CGFloat mainPaneWindowWidth = round(screenFrame.size.width * self.mainPaneRatio);
I might recompile with that removed and see how I like it, thanks.
Yeah, that would be great as a built-in option. Because "Restore layout's" is jaming amethyst's plist file sometimes. Also you anyway resize the main pane everytime, depending on your monitor's aspect ratio.