M2.4: Find tool window in a new bottom panel
- Bottom panel under editor and project tree (resizable, collapsible,
closable) for Find and later tool windows.
- Find store: search.find with options and include/exclude globs, results
streamed and sorted by file, events held until the searchId answer, a
new search cancels the running one, refused queries shown in place.
- Find tool window: toggles, counts, cancel, truncated hint, highlighted
previews, keyboard navigation, Enter or click runs editor.reveal.
- UI command find.open (Mod+Alt+F) with prefill from the selection or the
word at the cursor; find.open {query} from agents searches at once.
- 26 Vitest tests; progress docs and architecture updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
864a468b34
commit
097bbd9409
16 changed files with 1923 additions and 25 deletions
|
|
@ -61,6 +61,30 @@ export type EngineEventPayload =
|
|||
kind: "recoveryResolved";
|
||||
/** Paths restored or discarded; unchecked, it comes from the engine. */
|
||||
paths: unknown;
|
||||
}
|
||||
| {
|
||||
kind: "searchResults";
|
||||
/** The search, as `search.find` returned it; unchecked. */
|
||||
searchId: unknown;
|
||||
/** Project-relative path of the file; unchecked. */
|
||||
path: unknown;
|
||||
/** `[{line, column, length, preview, previewColumn}]`; unchecked. */
|
||||
matches: unknown;
|
||||
}
|
||||
| {
|
||||
kind: "searchDone";
|
||||
/** The search; unchecked, it comes from the engine. */
|
||||
searchId: unknown;
|
||||
/** Files with reported matches; unchecked. */
|
||||
files: unknown;
|
||||
/** Matches reported; unchecked. */
|
||||
matches: unknown;
|
||||
/** Whether the match cap left matches out; unchecked. */
|
||||
truncated: unknown;
|
||||
/** Whether the search was cancelled; unchecked. */
|
||||
cancelled: unknown;
|
||||
/** Wall time in milliseconds; unchecked. */
|
||||
elapsedMs: unknown;
|
||||
};
|
||||
|
||||
/** Callback receiving engine events. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue