PrStack

prstack (tui app)

Interactive terminal interface for managing PR stacks

TUI App

Run prstack without arguments to launch the interactive TUI (Terminal User Interface).

Usage

prstack

Features

The TUI provides a full-featured interface for managing your PR stacks:

  • Stack Detection: Automatically detect and visualize your current PR stack
  • Visual representation: Visually see
  • Navigation: Browse through your stack with keyboard shortcuts
  • Visual Diffs: View diffs between branches using your favorite diffing tool (press d on a selected change)
  • PR Management: Create, refresh, and merge PRs interactively

Keyboard Shortcuts

Quick Reference

KeyActionDescription
jMove DownNavigate down through stack items
kMove UpNavigate up through stack items
hTab LeftSwitch to previous tab
lTab RightSwitch to next tab
1Current StacksSwitch to "Current Stacks" tab
2My StacksSwitch to "My Stacks" tab
3All StacksSwitch to "All Stacks" tab
dDiffView diff between selected branch and base
oOpen PROpen the PR URL in browser
cCreate PRCreate a new PR for selected branch
mMerge PRMerge the selected PR
sSyncRun the sync command
rRefreshRefresh the display and reload data
qQuitExit the TUI application
  • j: Move down through stack items
  • k: Move up through stack items

Tabs

  • h: Switch to the previous tab
  • l: Switch to the next tab
  • 1: Switch to "Current Stacks" tab
  • 2: Switch to "My Stacks" tab
  • 3: Switch to "All Stacks" tab

Diff

  • d: View diff between the selected change and its parent. The diff viewer can be configured to use your preferred tool.

Open PR

  • o: Open the pull request URL in your default browser for the selected branch.

Create PR

  • c: Create a new pull request for the selected branch. This opens an interactive flow to configure the PR.

Merge PR

  • m: Merge the pull request for the selected branch. This will merge the PR using your configured merge strategy.

Sync

  • s: Run the sync command to update your stack. This ensures all branches are up to date with their dependencies.

Refresh

  • r: Refresh the display and reload data from GitHub to show the latest state.

Quit

  • q: Exit the TUI application and return to the command line.

Interface

The TUI interface provides:

  • A tree view of your current stack
  • Branch relationships and PR status
  • Interactive commands for stack operations
  • Visual feedback for all actions

When to Use the TUI

The TUI is ideal when you want:

  • A visual overview of your entire stack
  • To perform multiple operations in sequence
  • Interactive exploration of your branch structure
  • Real-time feedback during stack management

For quick, scriptable operations, use the CLI commands instead.

On this page