Amethyst icon indicating copy to clipboard operation
Amethyst copied to clipboard

Option to keep primary window size if it is the only window open

Open gprimosch opened this issue 12 years ago • 3 comments
trafficstars

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.

Trello Card

gprimosch avatar Nov 08 '13 14:11 gprimosch

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);

leonardt avatar Nov 08 '13 17:11 leonardt

I might recompile with that removed and see how I like it, thanks.

gprimosch avatar Nov 11 '13 20:11 gprimosch

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.

Bellavene avatar May 02 '22 15:05 Bellavene