Mark Stuart
852fc4a662
Add equalize action and equalize_on_close option to Splits layout
...
Adds an `equalize` layout action that redistributes split sizes so each
window receives a proportional share of space along each axis.
Also adds an `equalize_on_close` layout option that automatically
equalizes splits whenever a window is closed, keeping the remaining
windows balanced without requiring an explicit key binding.
These two features compose well. For example, to keep splits balanced
at all times - equalizing on every open and close:
enabled_layouts splits:equalize_on_close=true
map ctrl+' combine : launch --location=hsplit --cwd=current : layout_action equalize
map ctrl+/ combine : launch --location=vsplit --cwd=current : layout_action equalize
A standalone key binding for manual rebalancing is also supported:
map ctrl+shift+e layout_action equalize
2026-05-29 20:02:42 +01:00
copilot-swe-agent[bot]
4d55d30614
Enhance regression test with additional geometry validity assertions
...
Agent-Logs-Url: https://github.com/kovidgoyal/kitty/sessions/3b0c9eab-24ba-4934-a941-be477477cee4
Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com >
2026-05-01 15:05:34 +00:00
copilot-swe-agent[bot]
20185fc317
Fix display corruption when maximizing horizontal split with window_padding_width >= 4 (issue #9946 )
...
Agent-Logs-Url: https://github.com/kovidgoyal/kitty/sessions/3b0c9eab-24ba-4934-a941-be477477cee4
Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com >
2026-05-01 15:04:46 +00:00
Kovid Goyal
e9dcc4393f
...
2026-04-19 21:05:14 +05:30
copilot-swe-agent[bot]
96d10e51a0
Fix drag resize direction bugs and add comprehensive tests
...
Agent-Logs-Url: https://github.com/kovidgoyal/kitty/sessions/12198e55-3901-439b-9fba-9b5f5b470416
Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com >
2026-04-01 03:48:49 +00:00
copilot-swe-agent[bot]
551acca0e4
Implement maximize layout action for splits layout
...
Fixes #9629
Fixes #9630
2026-03-09 15:27:54 +05:30
Kovid Goyal
e49d940621
kitten @ ls: Also output the neighbors for every window
2025-11-16 21:01:55 +05:30
Kovid Goyal
26ea343f95
Fix failing tests
2025-10-22 13:21:53 +05:30
Jackie Li
6a2ee9253b
set_options() in layout tests
2025-10-14 19:43:07 +01:00
Kovid Goyal
e6c1597834
Start work on multiple hardware cursors
2025-08-24 20:14:14 +05:30
Kovid Goyal
77292a16d6
Make shebangs consistent
...
Follow PEP 0394 and use /usr/bin/env python so that the python in the
users venv is respected. Not that the kitty python files are meant to be
executed standalone anyway, but, whatever.
Fixes #6810
2023-11-11 08:32:05 +05:30
Kovid Goyal
4b997a961c
A new option single_window_padding_width to use a different padding when only a single window is visible
...
Fixes #6734
2023-10-20 08:37:45 +05:30
Kovid Goyal
7fe5d7b58f
Replace isort with ruff
2023-01-09 16:47:42 +05:30
Kovid Goyal
6546c1da9b
run pyupgrade to upgrade the codebase to python3.6
2021-10-21 12:43:55 +05:30
Kovid Goyal
0163bf3edb
Fix enter/tab/backspace not being reported in all keys mode
2021-01-16 20:52:15 +05:30
Juho Peltonen
1decae2938
Change splits layout neighbors to only include real neighbors
2020-07-11 21:35:29 +03:00
Kovid Goyal
cdd943ded4
Port layout tests to new API
2020-05-12 22:43:55 +05:30
Kovid Goyal
c69b8870d2
Allow individually setting margins and padding for each edge (left, right, top, bottom)
2020-04-19 09:36:26 +05:30
Kovid Goyal
a08efa1fc5
Fix failing test
2020-04-17 19:57:37 +05:30
Kovid Goyal
917559f883
more typing work
2020-03-13 16:13:26 +05:30
Kovid Goyal
86174c81c8
Some tests for splits layout
2020-01-30 20:30:52 +05:30
Kovid Goyal
2f7bdc274d
Fix failing test
2020-01-15 11:48:13 +05:30
Kovid Goyal
e8121b39ec
Add newer layout classes to tests
2020-01-15 08:14:45 +05:30
Luflosi
a792c94ccf
Use python3 shebang for all python scripts
...
Fixes #1624 .
Use python3 shebang for all python scripts as python still defaults to python2 on many systems.
2019-05-20 14:44:24 +02:00
Kovid Goyal
e35c3cc913
Add an option single_window_margin_width to allow different margins when only a single window is visible in the layout
...
Fixes #688
2018-06-29 09:56:05 +05:30
Kovid Goyal
22159c5eb4
Fix mockup for testing
2018-05-16 16:43:39 +05:30
Kovid Goyal
647b95631f
Add tests for layout operations with an overlay window
2018-02-04 11:28:13 +05:30
Kovid Goyal
aa518b2520
Add tests for basic layout operations
2018-02-04 11:28:13 +05:30