aboutsummaryrefslogtreecommitdiff
path: root/tests/test-vterm-toggle--dispatch.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-11 09:30:53 -0500
committerCraig Jennings <c@cjennings.net>2026-05-11 09:30:53 -0500
commite704e09601324acae054344ac0fe7f6f350fdc78 (patch)
tree19e51f749b9a92fe77ea1f9288d1200a59e8b67f /tests/test-vterm-toggle--dispatch.el
parent0103242a9da9dccd030f5ba21f2e9212f2ed18b9 (diff)
downloaddotemacs-e704e09601324acae054344ac0fe7f6f350fdc78.tar.gz
dotemacs-e704e09601324acae054344ac0fe7f6f350fdc78.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 'tests/test-vterm-toggle--dispatch.el')
0 files changed, 0 insertions, 0 deletions