Commit graph

41 commits

Author SHA1 Message Date
Kovid Goyal
44ac686c0c
Update changelog 2026-11-04 07:45:30 +05:30
Zhizhen He
1e273aa289 Docs: Correct protocol references, examples and generated help 2026-10-28 13:24:43 +08:00
Kovid Goyal
c406b136cb
Cleanup previous PR
- Only restore entry sizes in the Splits layout resize mode was opened in;
  otherwise fall back to the default reset rather than refusing to reset
- Do not take a snapshot lazily from already resized sizes when resize mode
  was opened in another layout
- Running the resize kitten while its overlay is open replaces the overlay so
  the new options take effect, keeping the original-size snapshot
- Newer edge statuses replace older local messages, and edge failures beep
- Switching strategy no longer discards a --fraction command-line override
- Compute divider room without deep copying the pair subtree
- Fractional resize in other layouts adopts the probed state instead of
  replaying every step
2026-10-09 19:51:38 +05:30
白鸽
c317e0f1be Restore entry proportions in both Splits resize strategies 2026-10-09 20:05:51 +08:00
白鸽
eeae762225 Add explicit edge resizing for Splits and preserve resize sessions 2026-10-09 19:54:02 +08:00
白鸽
ee7d3d604b Add configurable fractional steps to window resizing 2026-10-09 19:54:02 +08:00
Kovid Goyal
cbc5382bbe
Add support for docked windows
Allow creating docked windows with percentage or fixed sizes at any edge of a
window or tab. Fixes #2391

Also close #10506 and close #10508
The approach in #10506 was not used for several reasons.

1) Performance: this PR costs nothing when docs are unused vs several
milliseconds for the cassowary based approach
2) Way less code (700 lines total): No complicated solver (2K lines of code) needed
3) No risk behaviour changes for without docks
2026-10-01 15:45:44 +05:30
白鸽
2faf4b051c Splits: Resize adjacent regions consistently when dragging dividers 2026-09-22 17:09:21 +08:00
白鸽
cced6bb355 Splits: Add optional proportional sizing 2026-09-14 19:17:53 +08:00
Kovid Goyal
8660a97523
Couple more uses of repo_folder 2026-08-09 21:40:03 +05:30
Kovid Goyal
fd6c299965
Fix #10312 2026-08-04 06:28:12 +05:30
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]
551acca0e4
Implement maximize layout action for splits layout
Fixes #9629
Fixes #9630
2026-03-09 15:27:54 +05:30
Kovid Goyal
2b11345d9b
Add border drag based window resizing to the docs 2026-03-03 09:26:02 +05:30
Kovid Goyal
c600451bb8
Splits layout: Allow setting the bias of the current split using layout_action bias
Fixes #8222
2025-01-17 08:37:07 +05:30
Kovid Goyal
83c989d4e9
Splits layout: Allow setting the split_axis option to auto so that all new windows have their split axis chosen automatically unless explicitly specified in the launch command
Fixes #7887
2024-09-24 14:21:23 +05:30
Lorenzo Zabot
2d8deb86bb docs: minor adjustements 2024-03-16 14:43:23 +01:00
olzhasar
d0a5d1b3a4 Fix misspellings 2023-06-14 03:39:53 +06:00
Kovid Goyal
f5de08d5fa
Splits layout: Add a new mappable action to move the active window to the screen edge
Fixes #5643
2022-11-03 17:40:04 +05:30
Steven Moazami
adfcbb004f Add layout_action to change bias on tall layout
Can specify 1 bias to toggle between that and 50%.

Can specify multiple biases to rotate through them with each call to the
layout_action.

Left a comment regarding working around either a possible bug or a
design decision.
2022-08-04 19:29:17 -04:00
Kovid Goyal
a9a9f1ac00
Add a mappable action to toggle the mirrored setting for the tall and fat layouts
Fixes #5344
2022-08-03 22:45:38 +05:30
pagedown
13303416b8
Docs: Improve the documentations
Add more text roles and links.
Fix typos.
Adjust the default shortcut order in overview.
Notes on the impact of kitty-open.desktop on the default open apps.
Document KITTY_DEVELOP_FROM in glossary.
Add Python type hints to the watcher example.
Mention clone-in-kitty in launch --copy-env.
Fix remote control ls example does not work, by escaping the backslash.
2022-04-30 17:07:36 +08:00
Kovid Goyal
31a5965b01
Splits layout: A new value for :option:launch --location to auto-select the split axis when splitting existing windows. 2022-02-22 22:37:26 +05:30
Kovid Goyal
8fbe96744b
... 2022-02-11 10:50:33 +05:30
Kovid Goyal
1c48ec7196
Allow passing a "reset" argument to resize_window 2022-02-11 08:16:17 +05:30
Kovid Goyal
f056b7c1da
Improve docs for splits layout
Fixes #4592
2022-01-30 09:44:33 +05:30
Kovid Goyal
e68914f46b
Rationalize usage of :kbd: 2021-11-25 10:34:25 +05:30
Kovid Goyal
7c85616dcf
Add a note about arguments to layout_action rotate 2021-11-09 21:33:55 +05:30
Kovid Goyal
329d95fd3a
Include all in page headings in the sidebar ToC
The furo theme tries to make this impossible, fortunately,
this being python, we dont care what it wants
2021-07-21 10:35:58 +05:30
Kovid Goyal
d912d96f00
More docs cleanups 2021-07-19 09:08:55 +05:30
Kovid Goyal
f787a377c3
A new theme for the kitty website
Supports dark mode. Also re-organize the documentation
a bit, making it more hierarchical.

Have a nicer landing page
2021-07-18 13:29:33 +05:30
Kovid Goyal
2bc35539f0
Exclude document titles from local ToCs 2021-05-04 11:19:49 +05:30
Kovid Goyal
da39fb2880
Add a note about when the splits layout was added to kitty
Bloody Ubuntu/Debian and their absurd release policies.
2021-04-01 23:04:13 +05:30
Kovid Goyal
d8896eb210
Fix #2688 2020-05-24 12:40:54 +05:30
Kovid Goyal
25623c758d
Tall and Fat layouts: Add a `mirrored` option to put the full size window on the opposite edge of the screen
Fixes #2654
2020-05-13 23:19:34 +05:30
Kovid Goyal
06827fd437
Update docs to point to new layouts package 2020-05-12 22:43:54 +05:30
Kovid Goyal
037111715a
... 2020-03-24 11:34:29 +05:30
Kovid Goyal
55c5f3e9fd
... 2020-02-29 11:17:01 +05:30
Kovid Goyal
319a141967
grammar 2020-01-30 18:52:40 +05:30
Kovid Goyal
c0d0062ef8
Add docs for individual layouts
Also changelog entry for the splits layout
Fixes #2308
2020-01-30 18:50:28 +05:30
Kovid Goyal
970729dca0
Work on expanding documentation for layouts 2020-01-30 15:06:23 +05:30