Repository navigation
focus_other_pane keymap action: switch focus between the two split panes
#1006
Replies: 1 comment
|
I'd rather keep this one as a custom command. Your the built-in side already covers the rest:
one fix for your line: on a session without a split command "Other pane" ctrl+] agtermctl session focus --target "$AGT_SESSION_ID" --socket "$AGT_SOCKET" || truethe spawn costs once per switch, the keys you type after it go straight to the pane. this is the general answer for "can it do X" when the control API has X: bind it yourself. The agent skill (Help ▸ Install Agent Skill…) writes these lines for you if you ask the agent in your session, Extend agterm explains the model, and the cookbook collects bigger recipes. |
Uh oh!
There was an error while loading. Please reload this page.
A session has at most two panes, so one "other pane" key covers what Ctrl-1 / Ctrl-2 do with two. Since the top/bottom axis (#268, #427),
left/rightalso don't match what's on screen for a stacked split; "other" reads the same on both axes.The control API already has it (
agtermctl session focus other), butmaponly offersfocus_left_paneandfocus_right_pane.Current workaround:
It works, but each press spawns
/bin/sh+agtermctl+ a socket round trip (~15-25 ms here) instead of the in-process switch the built-ins do, and it's listed as a custom command rather than a navigation action.Ask: a built-in
focus_other_paneaction, bindable viamapand listed with the other navigation actions in the menu/palette. No default chord needed.agterm 0.41.1
All reactions