feat: Add Omnisearch support for regex search

This commit introduces the option to use Omnisearch as a backend for the regex search functionality, in addition to the existing ripgrep backend.
This commit is contained in:
travertexg
2025-06-09 09:40:16 +00:00
parent 8915b84b04
commit 350a49cef9
8 changed files with 246 additions and 68 deletions

View File

@@ -227,8 +227,12 @@ export default {
auto: 'Auto',
semantic: 'Semantic',
regex: 'Regex',
regexBackend: 'Regex search backend',
regexBackendDescription: 'Choose the backend for regex search method.',
ripgrep: 'ripgrep',
omnisearch: 'Omnisearch',
ripgrepPath: 'ripgrep path',
ripgrepPathDescription: 'Path to the ripgrep binary. When using regex search, this is required.',
ripgrepPathDescription: 'Path to the ripgrep binary. When using ripgrep regex search, this is required.',
},
// Chat Behavior Section

View File

@@ -228,8 +228,12 @@ export default {
auto: '自动',
semantic: '语义',
regex: '正则',
regexBackend: '正则搜索后端',
regexBackendDescription: '选择正则搜索的后端。',
ripgrep: 'ripgrep',
omnisearch: 'Omnisearch',
ripgrepPath: 'ripgrep 路径',
ripgrepPathDescription: 'ripgrep 二进制文件的路径。使用正则搜索时需要此项。',
ripgrepPathDescription: 'ripgrep 二进制文件的路径。使用 ripgrep 正则搜索时需要此项。',
},
// 聊天行为部分