feat: add global workspace search with regex and file filtering
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user