windows-terminal-quake
windows-terminal-quake copied to clipboard
Maintain new size when manually resizing a window
Context
This is the default size of my console:

When clicking on the maximize window icon - which can sometimes be helpful when having to fit more on the screen - the console looks like this:

This is a pretty great default behaviour that works as expected.
Problem
However when I now hide or re-show the terminal using the quake hotkey the windows size reverts to the one from the initial settings.
Suggested solution
I would suggest the following behaviour:
- When clicking "Maximise", update the current size in quake console.
- When clicking "Restore down", restore to the size from the configuration file.
Couple notes:
- How would we be able to notice the window size having changed due to a user action? Window sizes can change for different reasons (I've used toggling myself exactly to restore the original size)
- When using multiple monitors with different sizes, the relative sizing we do now handles that pretty neatly. When we want to maintain the user-defined size, what do we do then? Calculate relative size? Only apply when on the same monitor?
- There is some overlap with the "detach" feature being discussed here: https://github.com/flyingpie/windows-terminal-quake/issues/184