feat(tui): add session navigation mode#27788
Closed
samiralibabic wants to merge 2 commits into
Closed
Conversation
Contributor
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
Author
|
Closing this core PR in favor of the TUI plugin path suggested in the issue discussion: https://github.com/samiralibabic/opencode-session-navigation The plugin is published on npm: https://www.npmjs.com/package/opencode-session-navigation Install: opencode plugin opencode-session-navigationThis keeps the feature outside core while still making the behavior available for real-world testing. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue for this PR
Closes #27787
Type of change
What does this PR do?
Adds a TUI session navigation mode for keyboard-first navigation through long session output.
When the session is idle, Escape enters navigation mode. In navigation mode, the prompt is blurred, a compact NAV indicator is shown, and Vim-style keys navigate output: j/k, Ctrl+D/Ctrl+U, Ctrl+F/Ctrl+B, gg/G, and n/N/p. The n/N/p bindings jump to the next/previous visible user message and do nothing when there is no matching target.
The prompt editor is unchanged. Bare letters still type normally while the prompt is focused. Navigation-mode bindings are scoped to NAV mode only.
This works by adding separate
session.navigation.*keybinds and commands rather than remapping existing prompt or session bindings globally.How did you verify your code works?
bun test test/config/tui.test.tsbun typecheckgit diff --check dev...HEADbun turbo typecheckScreenshots / recordings
No recording attached yet. This is a TUI interaction change; a short recording showing Escape -> NAV -> j/k -> i would help review.
Checklist