Implement resizing of individual windows in a layout
See the Layouts section in the README for details. Fixes #362 Note that it is only implemented for the Tall layout currently. Other layouts to follow. The implementation might also be refined in the future.
This commit is contained in:
@@ -48,6 +48,7 @@
|
||||
:sc_seventh_window: pass:quotes[`ctrl+shift+7`]
|
||||
:sc_show_scrollback: pass:quotes[`ctrl+shift+h`]
|
||||
:sc_sixth_window: pass:quotes[`ctrl+shift+6`]
|
||||
:sc_start_resizing_window: pass:quotes[`ctrl+shift+r`]
|
||||
:sc_tenth_window: pass:quotes[`ctrl+shift+0`]
|
||||
:sc_third_window: pass:quotes[`ctrl+shift+3`]
|
||||
:sc_toggle_fullscreen: pass:quotes[`ctrl+shift+f11`]
|
||||
@@ -343,6 +344,15 @@ You can switch between layouts using the {sc_next_layout} key combination. You c
|
||||
also create shortcuts to select particular layouts, and choose which layouts
|
||||
you want to enable/disable, see link:kitty/kitty.conf[kitty.conf] for examples.
|
||||
|
||||
You can resize windows inside layouts. Press {sc_start_resizing_window} to
|
||||
enter resizing mode. Then use the `W/N` (Wider/Narrower) and `T/S`
|
||||
(Taller/Shorter) keys to change the window size. Press the `0` key to rest the
|
||||
layout to default sizes. Any other key will exit resize mode. In a given
|
||||
window layout only some operations may be possible for a particular window. For
|
||||
example, in the Tall layout you can make the first window wider/narrower, but
|
||||
not taller/shorter. Note that what you are resizing is actually not a window,
|
||||
but a row/column in the layout, all windows in that row/column will be resized.
|
||||
|
||||
Some layouts take options to control their behavior. For example, the `fat` and `tall`
|
||||
layouts accept the `bias` option to control how the available space is split up. To specify the
|
||||
option, in kitty.conf use:
|
||||
@@ -351,7 +361,7 @@ option, in kitty.conf use:
|
||||
enabled_layouts tall:bias=70
|
||||
```
|
||||
|
||||
this will make the tall window occupy `70%` of available width. `bias` can be
|
||||
This will make the tall window occupy `70%` of available width. `bias` can be
|
||||
any number between 10 and 90.
|
||||
|
||||
Writing a new layout only requires about fifty lines of code, so if there is
|
||||
|
||||
Reference in New Issue
Block a user