Printable idea sheet
wildcard_references_webview
reqlan rq/language/imports.rq:260
Katz 0.199
A click on the command document link for a wildcard_references target
runs `reqlan.openWildcardReference` and opens a dedicated **wildcard matches** webview
( beside the editor ) that lists:
- Stats: matching idea count, distinct file count, and @ status breakdown
- Requirements: each matching idea with name, status, path, and summary ( click opens the idea )
- Files: each matching file with idea count ( click opens the file )
Secondary action **Open in Search** seeds the activity-bar
search_pane_seed via `focusIdeaSearch` with:
- `query`: idea pattern with glob meta softened for fuzzy search ( `import_*` → `import` )
- `pathFilter`: the path glob as a hard AND filter ( idea_path_filter )
Payload builder: `buildWildcardMatchesPayload` filters the index catalog by idea glob + path filter.
Protocol for the matches panel is inline host ↔ webview ( `init` / `openIdea` / `openFile` / `openSearch` ).
The document-link target is the command URI. Go-to-definition does not open the panel.
Highlighting of the source reference must stay link-styled — see
syntax_highlighting and
wildcard_reference_highlighting.
- implementation
- register-wildcard-reference-handling.ts, wildcard-matches-panel.ts, main.ts, wildcard-matches-payload.ts, idea-path-filter.ts, activity-bar-messages.ts, app.svelte.ts, package.json
- status
- done
- tests
- wildcard-reference-open-search.test.ts, wildcard-reference-open-search.test.ts:e2e: buildWildcardMatchesPayload lists stats, ideas, and files, wildcard-reference-open-search.test.ts:e2e: wildcardSearchSeed maps command args to focusIdeaSearch payload, wildcard-reference-open-search.test.ts:e2e: command args → seed → pathFilter gates search hits, wildcard-references.test.ts:e2e: tokenize → parse → resolve → document link → definition → command args, textmate-wildcard-highlight.test.ts, semantic-tokens-wildcard.test.ts
Interactive page: wildcard_references_webview