feat: add global workspace search with regex and file filtering

This commit is contained in:
plenarius
2026-04-20 19:30:42 -04:00
parent d7c5f18544
commit b36391b520
4 changed files with 440 additions and 0 deletions
+6
View File
@@ -33,6 +33,12 @@ export const api = {
}),
deleteFile: (repo: string, filePath: string) =>
request(`/editor/file/${repo}/${filePath}`, { method: "DELETE" }),
search: (repo: string, query: string, opts?: Record<string, unknown>) =>
request<{
matches: Array<{ file: string; line: number; column: number; text: string; matchLength: number }>;
totalMatches: number;
filesSearched: number;
}>("/editor/search", { method: "POST", body: JSON.stringify({ repo, query, ...opts }) }),
},
workspace: {