diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-11 09:30:53 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-11 09:30:53 -0500 |
| commit | 071fb5e972a08e4072d9177d493928ceb26763f4 (patch) | |
| tree | 19e51f749b9a92fe77ea1f9288d1200a59e8b67f /modules/test-runner.el | |
| parent | a70bb985c86aee2b701b40d5c3fae720863cfa4e (diff) | |
| download | dotemacs-071fb5e972a08e4072d9177d493928ceb26763f4.tar.gz dotemacs-071fb5e972a08e4072d9177d493928ceb26763f4.zip | |
feat(ai-vterm): keep emacsclient files out of the agent window
`server-start' leaves `server-window' nil, so `server-switch-buffer' opens an `emacsclient -n' file in the selected window. When I'm typing in the agent vterm, the selected window is the agent window, so "tell the agent to open something" replaced the agent buffer with that file. I wired `server-window' to a function. When the selected window shows an `agent [...]' buffer, it puts the file in a non-agent window instead, splitting one off to the left of the agent when the agent is the only window. emacsclient invocations from anywhere else still go through `pop-to-buffer' unchanged.
`cj/--ai-vterm-non-agent-window' picks the target window. It skips the minibuffer, dedicated windows, and any window already showing an agent buffer.
Diffstat (limited to 'modules/test-runner.el')
0 files changed, 0 insertions, 0 deletions
