Keyboard shortcuts for the Agent and Files/Diff panels
The Agent and Files/Diff panels can now be toggled without reaching for the mouse. Ctrl+Shift+A (Cmd+Shift+A on macOS) shows or hides the Agent panel, and Ctrl+Shift+E (Cmd+Shift+E) does the same for the Files/Diff panel beside it. Both are app-scoped: they only act while Pekan is focused, and neither registers as a system-wide shortcut, so they never compete with anything else running on the desktop.
Toggling a panel never touches what is inside it. An active agent session, an unsaved file, or the file you were reviewing in the diff view all stay exactly as they were because their state remains in the workspace and session stores while the panel is collapsed. Opening a panel back up restores its previous width, its selected tab (Files or Diff), and whatever the session sidebar or file tree had focused, so the shortcut behaves like a show/hide toggle rather than a reset.
Focus moves with the panel: opening one lands you on a sensible starting point inside it (the composer for an active agent session, or the focused file or diff row), and closing one returns focus to wherever it was before you opened it. The shortcuts stay out of the way of anything that needs exclusive keyboard input, such as a confirmation dialog or Quick Open, and they do not interfere with typing in the editor, the terminal, or the agent composer. The terminal in particular gets special handling, since terminals otherwise cannot tell Ctrl+Shift+A apart from plain Ctrl+A.
The panel toggle buttons and their tooltips, along with the Help page's keyboard-shortcut reference, now show the binding for whichever platform Pekan is running on.
Highlights
- Ctrl/Cmd+Shift+A toggles the Agent panel; Ctrl/Cmd+Shift+E toggles the Files/Diff panel.
- App-scoped only: no system-wide registration, no interference with typing in editors, the terminal, or the agent composer.
- Closing a panel preserves its session, unsaved files, and view state; reopening restores width, tab, and focus.
- Tooltips and the Help shortcut reference display the correct binding per platform.