Commit e229777
committed
Add interactive TUI mode for git-stack status
Implement fullscreen TUI for branch navigation using ratatui/crossterm.
Users can now run `git stack status -i` to interactively browse the
branch tree and checkout branches with Enter.
Key changes:
- Extract shared rendering infrastructure into src/render/ module
- colors.rs: ThemeColor type with unified color constants
- tree_data.rs: RenderableBranch/RenderableTree for flattened tree data
- cli.rs: CLI rendering using the shared data types
- Add TUI implementation in src/tui/ module
- input.rs: Keyboard handling (j/k, arrows, Enter, q/Esc)
- app.rs: App state, cursor navigation, ratatui rendering
- Add -i/--interactive flag to status command
- Route to TUI or CLI based on flag, checkout branch on selection
Navigation: j/↓ down, k/↑ up, Enter checkout, q/Esc quit1 parent 0215299 commit e229777
File tree
10 files changed
+2200
-554
lines changed- src
- render
- tui
10 files changed
+2200
-554
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
0 commit comments