diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-25 04:10:38 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-25 04:10:38 -0500 |
| commit | 30a42afa19ad1866f7bc44b3e938c4dbd750d554 (patch) | |
| tree | 9cde5720a25a0e8aa8cbf4fb87c4469e8da24c31 /docs | |
| parent | a72e944a40486400e3c17fd26dba8ebcf01a0396 (diff) | |
| download | dotemacs-30a42afa19ad1866f7bc44b3e938c4dbd750d554.tar.gz dotemacs-30a42afa19ad1866f7bc44b3e938c4dbd750d554.zip | |
fix(ai-vterm): reuse the frame's half instead of splitting a third
F9 split a third window into a frame that was already divided in two, wedging the agent into the middle or a skinny extra column instead of taking the half it should occupy. The display rule only knew how to reuse a window already showing an agent or to split a fresh one. With a plain two-pane layout it fell through to the split and added a window.
I added a display action, cj/--ai-vterm-reuse-edge-window, that reuses the window already forming the target half (the right column on a desktop, the bottom row on a laptop), found by a new cj/window-at-edge helper. It records the displaced buffer with display-buffer-record-window, so toggling off restores that buffer through the native quit-restore-window. The slot's buffer swaps between the agent and whatever it displaced, and no window is created or deleted. The split path still handles a single-window frame or a layout split on the other axis, and the lone fullscreen agent keeps its bury-and-restore-in-place behavior.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions
