Resize window to maintain width (in chars) and height (in columns) when using ctrl-+ or ctrl--
#10,466 opened on 2021年6月20日
Repository metrics
- Stars
- (35,764 stars)
- PR merge metrics
- (平均マージ 27d 19h) (30d で 24 merged PRs)
説明
Description of the new feature/enhancement
The current reduces or increases font size when Ctrl-- or Ctrl-+ are pressed. However the window width and height in pixels stays the say. This leads to visual inconsistencies when using apps like vi on ubuntu. I'd like to propose that the window size changes to maintain the width in characters / line and and height in columns when the font size is changed. This proposed behavior is also the one coded in Ubuntu and MacOSX.
Proposed technical implementation details (optional)
If your default characters/line is 120 and the default lines is 40, and the font size is 12, when the Ctrl-+ button is pressed the font size increases to 14. What should happen then is that the Terminal window's width should change to one that holds 120 characters at Font Size 14. And it's height should change to one that holds 40 lines at size 14. So the Terminal window should resize to be slightly larger. Similarly when Ctrl-- is pressed, the Terminal window should resize to become smaller. This is the default in other Unix platforms.