Repository navigation
feat(history): a keyboard history picker over the editor - #601
Merged
Merged
Conversation
The moment you want a previous statement is while typing, and getting it meant leaving the keyboard for the sidebar (#591). Ctrl+Shift+H opens a searchable picker over the editor; ↑↓ move, Enter inserts into the active tab, Escape closes. Shifted rather than plain Ctrl+H because Ctrl+H is find-and-replace in Monaco, and taking that from someone mid-edit is worse than the shortcut being one key longer. The picker reads the history directly rather than through historyStore. The panel's filters and sort belong to the panel: someone reaching for a statement mid-thought wants the whole history, not whatever slice the sidebar happens to be showing. Enter on an empty list inserts nothing. Inserting the search text because it was the only thing to hand would be a surprising thing to do with it. scrollIntoView is called through an optional guard. It is not universal — jsdom has no layout and does not implement it — and losing the scroll is a far better outcome than the picker throwing, which is what it did before the guard. Closes #591 Co-Authored-By: Claude Opus 5 <[email protected]>
EVWorth
force-pushed
the
feat/history-quick-open
branch
from
September 10, 2026 00:10
f79d0a3 to
e234d69
Compare
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.
Closes #591.
The moment you want a previous statement is while typing, and getting it meant leaving the keyboard for the sidebar. Ctrl+Shift+H opens a searchable picker over the editor; ↑↓ move, Enter inserts into the active tab, Escape closes. DataGrip binds a popup in the editor for exactly this.
Three choices worth naming
Ctrl+His find-and-replace in Monaco; taking that from someone mid-edit is worse than the shortcut being one key longer.historyStore. The panel's filters and sort belong to the panel — someone reaching for a statement mid-thought wants the whole history, not whatever slice the sidebar is showing. Tested.One real bug the tests caught
scrollIntoViewis now called through an optional guard. It isn't universal — jsdom has no layout and doesn't implement it — and the picker threw when arrowing past the fold before the guard went in. Losing the scroll is a far better outcome than the component crashing.Also added to the Ctrl+? shortcuts dialog, so it's discoverable rather than folklore.
Verification
13 new tests. Full suite 1907 passing, 0 lint errors.