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:
danny 2026-10-17 12:42:53 +02:00
parent 864a468b34
commit 097bbd9409
16 changed files with 1923 additions and 25 deletions

View file

@ -260,6 +260,7 @@ describe("CommandPalette", () => {
expect(rows(wrapper)).toEqual([
"project.close",
"palette.open",
"find.open",
"project.openDialog",
"app.quit",
"editor.reveal",
@ -281,7 +282,7 @@ describe("CommandPalette", () => {
const wrapper = await mountPalette();
await press(PALETTE_KEY);
await type(wrapper, "o");
expect(rows(wrapper).slice(0, 2)).toEqual(["project.openDialog", "palette.open"]);
expect(rows(wrapper).slice(0, 3)).toEqual(["project.openDialog", "find.open", "palette.open"]);
await type(wrapper, "open f");
expect(rows(wrapper)[0]).toBe("project.openDialog");
await press({ key: "ArrowDown" });