Splits layout: A new value for :option:launch --location to auto-select the split axis when splitting existing windows.

This commit is contained in:
Kovid Goyal
2022-02-22 22:36:50 +05:30
parent 7a2a849a97
commit 31a5965b01
4 changed files with 24 additions and 12 deletions

View File

@@ -87,6 +87,9 @@ Detailed list of changes
- macOS: Add a new service ``Open with kitty`` to open file types that are not
recognized by the system (:pull:`4641`)
- Splits layout: A new value for :option:`launch --location` to auto-select the split axis when splitting existing windows.
Wide windows are split side-by-side and tall windows are split one-above-the-other
- Fix a regression in the previous release that broke :opt:`active_tab_foreground` (:iss:`4620`)
- Fix :ac:`show_last_command_output` not working when the output is stored

View File

@@ -138,6 +138,11 @@ define a few extra key bindings in :file:`kitty.conf`::
# the two windows are placed side by side
map F6 launch --location=vsplit
# Create a new window splitting the space used by the existing one so that
# the two windows are placed side by side if the existing window is wide or
# one above the other if the existing window is tall.
map F4 launch --location=split
# Rotate the current split, chaging its split axis from vertical to
# horizontal or vice versa
map F7 layout_action rotate