feat: add Ctrl+F search panel for finding nodes and edges #357
Merged
pradeeban merged 1 commit intoControlCore-Project:devfrom Mar 2, 2026
Merged
feat: add Ctrl+F search panel for finding nodes and edges #357pradeeban merged 1 commit intoControlCore-Project:devfrom
pradeeban merged 1 commit intoControlCore-Project:devfrom
Conversation
Author
|
@pradeeban hope you like this one, search state lives in the reducer, highlight/dim goes through cytoscape classes so it doesn't touch any graph data. let me know if you want me to scope it differentlyy :p |
Member
|
Your other merged PR has now created a merge conflict. Pls resolve. I like the PR. Minimal and on-point. |
accdb2c to
9f0d7d2
Compare
Author
|
@pradeeban done, glad it landed well, kept it label-only to stay minimal for v1 |
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.
fixes #356
Ctrl+F did nothing. In a 40-node graph you're just panning and squinting. Every other graph tool has this.
Wired up a floating search panel, Ctrl+F opens it, type to filter, Enter/Shift+Enter cycles matches, Esc closes and restores. Matches get an orange overlay, everything else dims. Counter shows 3 of 12. Viewport pans to each result via cytoscape's animate.
Touches:
SearchPanel.jsx + css, the widget itself
tailored-graph-builder, searchElements, clearSearch, flyToElement
cytoscape-style, .search-match / .search-dim selectors
reducer, 4 new keys (searchPanel, searchQuery, searchResults, searchIndex)
toolbar, Search button, Ctrl+F hotkey
Before: ctrl+f did nothing
After: matches highlight, rest dims, cycles through with enter