Skip to content

Navigation

Secondary Terminal includes several navigation layers so you can move through terminals, command output, and split layouts without relying on the mouse. That includes find-in-terminal search, direct terminal focus shortcuts, previous and next terminal commands, and an opt-in Zellij-style panel navigation mode.

FeatureDescription
Find in terminalSearch terminal output with text or regular expressions.
Focus terminal viewJump directly into Secondary Terminal from the keyboard.
Focus by indexUse terminal number shortcuts for fast switching.
Previous and next terminalMove across terminals without choosing a specific index.
Panel navigation modeUse Ctrl+P plus h/j/k/l or arrows to move between splits.

Search in Terminal

Find-in-terminal behaves like you would expect in a serious terminal workflow.

ActionShortcutNotes
Open searchCtrl+F / Cmd+FFocuses the terminal search UI.
Regex searchSearch optionUseful for filenames, test names, or repeated prompt markers.
Search across outputTerminal bufferWorks on the visible terminal history.

This is especially effective when you are searching for specific commands, stack traces, or model responses in a long AI session.

Focus and Switching Shortcuts

ActionShortcut
Focus Secondary TerminalCtrl+`
Focus terminal 1-5Alt+1..5 or Cmd+Alt+1..5 on macOS
Focus next terminalAlt+Right or Alt+Cmd+Right on macOS
Focus previous terminalAlt+Left or Alt+Cmd+Left on macOS
Scroll to previous commandCtrl+Up or Cmd+Up on macOS
Scroll to next commandCtrl+Down or Cmd+Down on macOS

Zellij-Style Panel Navigation Mode

Panel navigation mode is disabled by default to avoid conflicts with terminal multiplexers like zellij, tmux, or screen. When enabled, it gives you a dedicated keyboard layer for switching between split terminals.

SettingDefaultDescription
secondaryTerminal.panelNavigation.enabledfalseEnables the dedicated panel navigation mode.
secondaryTerminal.navigation.enabledtrueEnables general terminal navigation features.
secondaryTerminal.navigation.showCommandMarkstrueShows command boundaries for easier navigation.

Panel Navigation Shortcuts

KeyResult
Ctrl+PEnter or exit panel navigation mode
h or ArrowLeftFocus previous terminal
j or ArrowDownFocus next terminal
k or ArrowUpFocus previous terminal
l or ArrowRightFocus next terminal
r or dCreate a new terminal
xClose the current terminal
EscapeExit panel navigation mode

Example setup:

json
{
  "secondaryTerminal.panelNavigation.enabled": true,
  "secondaryTerminal.navigation.enabled": true,
  "secondaryTerminal.navigation.showCommandMarks": true
}

When This Matters Most

Navigation features save the most time when:

  • you keep several terminals open all day
  • you work in split view
  • you need to search long AI or test logs quickly
  • you prefer keyboard-first workflows

Released under the MIT License.