Navigation Commands
v0.1.0+Rung provides several commands for navigating within your stack.
Navigate to the next (child) branch in the stack.
rung nxtrung n— shorthand forrung nxt
Example
Section titled “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
Section titled “When There’s No Child”$ rung nxtNo child branch foundNavigate to the previous (parent) branch in the stack.
rung prvrung p— shorthand forrung prv
Example
Section titled “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
Section titled “When at Root”# On main$ rung prvAlready at root of stackInteractive branch picker for quick navigation. Opens a TUI list to select and jump to any branch in the stack.
rung moverung mv— shorthand forrung move
Example
Section titled “Example”$ rung move? Jump to branch: feat/auth #41> feat/api #42 ◀ feat/uiUse arrow keys to navigate, Enter to select.
Features
Section titled “Features”- Shows all branches in the stack
- Highlights current branch with
◀ - Displays PR numbers when available
- Fuzzy search as you type
Navigation Workflow
Section titled “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