mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
Add resize_window configuration action
This patch adds the `resize_window` configuration action, which has the
following arguments:
1. Quality of resize amongst `wider`, `narrower`, `taller`, and
`shorter` (mandatory).
2. Increment in number of cells (optional, default: 1).
This makes it possible to configure keys as such:
map ctrl+shift+left resize_window narrower
map ctrl+shift+right resize_window wider
map ctrl+shift+up resize_window taller
map ctrl+shift+down resize_window shorter
and have a behaviour which is somewhat close to Terminator's.
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
This commit is contained in:
@@ -223,6 +223,22 @@ 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.
|
||||
|
||||
You can define shortcuts in :file:`kitty.conf` to make the active window
|
||||
wider, narrower, taller, or shorter by mapping to the ``resize_window``
|
||||
action, for example::
|
||||
|
||||
map ctrl+left resize_window narrower
|
||||
map ctrl+right resize_window wider
|
||||
map ctrl+up resize_window taller
|
||||
map shift+down move_window shorter
|
||||
...
|
||||
|
||||
The ``resize_window`` action has a second, optional argument to control
|
||||
the resizing increment (a positive integer)::
|
||||
|
||||
map ctrl+up resize_window taller 3
|
||||
...
|
||||
|
||||
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 :opt:`kitty.conf <enabled_layouts>` use::
|
||||
|
||||
Reference in New Issue
Block a user