Navigation Commands
Rung provides several commands for navigating within your stack.
nxt
Navigate to the next (child) branch in the stack.
Usage
rung nxtAlias
rung n— shorthand forrung nxt
Example
# Starting on feat-add-user-model$ rung nxtSwitched to feat-add-user-apiIf the current branch has multiple children, nxt switches to the first child.
When There’s No Child
$ rung nxtNo child branch foundprv
Navigate to the previous (parent) branch in the stack.
Usage
rung prvAlias
rung p— shorthand forrung prv
Example
# Starting on feat-add-user-tests$ rung prvSwitched to feat-add-user-api
$ rung prvSwitched to feat-add-user-model
$ rung prvSwitched to mainWhen at Root
# On main$ rung prvAlready at root of stackmove
Interactive branch picker for quick navigation. Opens a TUI list to select and jump to any branch in the stack.
Usage
rung moveAlias
rung mv— shorthand forrung move
Example
$ rung move? Jump to branch: feat/auth #41> feat/api #42 ◀ feat/uiUse arrow keys to navigate, Enter to select.
Features
- Shows all branches in the stack
- Highlights current branch with
◀ - Displays PR numbers when available
- Fuzzy search as you type
Navigation Workflow
# Start at the tip of your stack$ rung status
Stack ────────────────────────────────────────────────── ● feat-add-user-model #41 ← main ● feat-add-user-api #42 ← feat-add-user-model ● ▶ feat-add-user-tests #43 ← feat-add-user-api ──────────────────────────────────────────────────
● synced ● needs sync ● conflict
# Go back to the beginning$ rung prvSwitched to feat-add-user-api
$ rung prvSwitched to feat-add-user-model
# Check what's in this branch$ rung logabc123 Add user model you
# Jump to any branch$ rung move? Jump to branch:> feat-add-user-tests #43
# Forward navigation$ rung nxtSwitched to feat-add-user-api