API ReferenceGE Extensionseditorflowgraph
Flowgraph Search Window
Provides project-wide search for nodes, graphs, and pins inside the flowgraph editor with frecency-based ranking.
Provides project-wide search for nodes, graphs, and pins inside the flowgraph editor with frecency-based ranking.
Overview
A flowgraph manager window that lets users search across all nodes, graphs, and pins in the current project. Supports type-prefix filters (node:, graph:, pin:), keyboard arrow navigation, and frecency scoring to rank recently/frequently accessed results higher.
Window Properties
| Property | Value |
|---|---|
C.windowName | "fg_search" |
C.windowDescription | "Search" |
C.arrowControllable | true |
Key Functions
| Function | Description |
|---|---|
C:init() | Registers window, creates searchUtil instance |
C:attach(mgr) | Binds to a flowgraph manager, initializes per-manager results |
C:drawSearchInput() | Renders the search input field with clear button and help tooltip |
C:findNodes(match) | Queries all nodes and their pins as search elements |
C:findGraphs(match) | Queries all graphs as search elements |
C:findStuff() | Orchestrates search when input changes; applies frecency and sort |
C:highlightText(label, highlightText) | Renders text with orange-highlighted matches |
C:getFilterType() | Parses node:, graph:, pin: prefix from search text |
C:displayResults() | Draws search results with type labels, location, and match scores |
C:manageClick(result) | Handles selection - navigates to the node/graph/pin and focuses it |
C:navigateList(up) | Arrow key navigation through result list |
C:handleActionMap() | Pushes/pops NodeLibrary action map when window is focused |
C:arrowHelper(cursor, itemSize) | Draws selection/hover rectangles for keyboard navigation |
C:draw() | Main draw loop |
Search Prefixes
| Prefix | Effect |
|---|---|
node: | Only show node results |
graph: | Only show graph results |
pin: | Only show pin results |
| (none) | Show all result types |
Usage Example
-- Search is integrated into the flowgraph editor.
-- Type "node: timer" to find all Timer nodes.
-- Type "pin: flow" to find all flow pins.
-- Results are ranked by match quality + frecency.
-- Clicking a result navigates to it:
-- node → selects node, focuses graph
-- graph → opens graph, focuses content
-- pin → selects owning node, focuses graphAdditional Methods
| Method | Description |
|---|---|
C:createNode() | Sets doClick = true to trigger selection of the current result |
C:_onSerialize(data) | Serialization hook (no-op) |
C:_onDeserialized(data) | Deserialization hook (no-op) |
See Also
- Flowgraph References - Cross-project node usage
- Flowgraph Editor - Parent editor