feat: add VS Code-style file search and icon activity bar (#78)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -203,3 +203,34 @@ export type GitDiffResult = {
|
||||
originalContent: string
|
||||
modifiedContent: string
|
||||
}
|
||||
|
||||
// ─── Search ─────────────────────────────────────────────
|
||||
export type SearchMatch = {
|
||||
line: number
|
||||
column: number
|
||||
matchLength: number
|
||||
lineContent: string
|
||||
}
|
||||
|
||||
export type SearchFileResult = {
|
||||
filePath: string
|
||||
relativePath: string
|
||||
matches: SearchMatch[]
|
||||
}
|
||||
|
||||
export type SearchResult = {
|
||||
files: SearchFileResult[]
|
||||
totalMatches: number
|
||||
truncated: boolean
|
||||
}
|
||||
|
||||
export type SearchOptions = {
|
||||
query: string
|
||||
rootPath: string
|
||||
caseSensitive?: boolean
|
||||
wholeWord?: boolean
|
||||
useRegex?: boolean
|
||||
includePattern?: string
|
||||
excludePattern?: string
|
||||
maxResults?: number
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user