feat: add jump-to-message keybind in timeline dialog#14928
Open
gab-core wants to merge 2 commits intoanomalyco:devfrom
Open
feat: add jump-to-message keybind in timeline dialog#14928gab-core wants to merge 2 commits intoanomalyco:devfrom
gab-core wants to merge 2 commits intoanomalyco:devfrom
Conversation
Add a 'Jump' keybind (default: tab) to the timeline dialog that scrolls to the selected message and closes the dialog, allowing users to navigate to a specific message without being forced to choose an action (Revert, Copy, Fork). Enter still opens the message actions dialog as before.
Contributor
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
1 task
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
No existing issue — this addresses a usability gap in the
/timelinecommand.Type of change
What does this PR do?
The
/timelinecommand lets you browse through your past messages in a session. As you navigate the list, it already scrolls the conversation in the background to the highlighted message (onMove). However, pressing Enter forces a second dialog (DialogMessage) with three actions: Revert, Copy, or Fork. There is no way to simply jump to a message and stay in the conversation.This PR adds a secondary keybind ("Jump", default
tab) inside the timeline dialog. When triggered, it scrolls to the selected message and closes the dialog — the user stays exactly where they jumped to, without any forced action.The existing Enter behavior is unchanged (still opens the message actions dialog), so this is not a breaking change.
Implementation details:
dialog-timeline.tsx: passes thekeybindprop toDialogSelect(same pattern used indialog-session-list.tsxfor delete/rename). The keybind callsprops.onMove(option.value)to scroll, thendialog.clear()to close.config.ts: addssession_timeline_jumpkeybind entry (default:tab), so users can remap it.types.gen.ts: regenerated SDK types to include the new keybind field.How did you verify your code works?
bun tsc --noEmitinpackages/opencode)./packages/sdk/js/script/build.tsDialogSelectkeybind pattern indialog-session-list.tsxto ensure consistencyScreenshots / recordings
N/A — TUI change, the "Jump tab" hint appears at the bottom of the timeline dialog.
Checklist