Skip to content

Documentation

Interactive Mode

Keyboard shortcuts and vim mode for interactive prompts.

Many gs commands use interactive prompts to help you select branches, enter names, or make decisions. Here are the keyboard shortcuts available.

Navigation and Selection

KeyAction
Arrow keys (up/down)Navigate through options
TabMove to next option (in Select prompts)
EnterConfirm selection or submit input
Type to filterStart typing to filter options (in Select prompts)

Vim Mode

KeyAction
ESCToggle vim mode on/off
jMove down (when vim mode is enabled)
kMove up (when vim mode is enabled)

Editing (Input prompts)

KeyAction
Backspace / DeleteRemove characters
Ctrl+WDelete word
Ctrl+UDelete line

Control

KeyAction
Ctrl+CCancel and exit the current prompt

Tips

  • Use vim mode for faster navigation if you're comfortable with j/k keys. Press ESC to toggle.
  • Type to filter in Select prompts to quickly find branches in large stacks.
  • Use gs co -t as a quick way to return to trunk from anywhere.
  • Press Ctrl+C anytime to safely cancel an operation.