feat: Enhance file search with core plugin and Omnisearch integration

- Introduces a new match_search_files tool for fuzzy/keyword search, integrating with Obsidian's core search plugin and updating Omnisearch integration for improved file search capabilities.
- Adds settings for selecting search backends (core plugin, Omnisearch, ripgrep) for both regex and match searches.
- Updates language files, prompts, and types to support the new functionality.
- Restructures search-related files for better organization.
This commit is contained in:
travertexg
2025-06-09 15:15:16 +00:00
parent 350a49cef9
commit 9984527e85
18 changed files with 326 additions and 36 deletions

View File

@@ -82,6 +82,7 @@ export default {
copy: "复制",
editOrApplyDiff: "{mode}{path}",
loading: "加载中...",
matchSearchInPath: '在 {path} 中匹配搜索文件 "{query}"',
regexSearchInPath: '在 {path} 中正则搜索文件 "{regex}"',
createNewNote: "创建新笔记",
copyMsg: "复制消息",
@@ -228,10 +229,13 @@ export default {
auto: '自动',
semantic: '语义',
regex: '正则',
match: '匹配',
regexBackend: '正则搜索后端',
regexBackendDescription: '选择正则搜索的后端。',
matchBackend: '匹配搜索后端',
matchBackendDescription: '选择匹配搜索的后端。',
ripgrep: 'ripgrep',
omnisearch: 'Omnisearch',
coreplugin: '核心插件',
ripgrepPath: 'ripgrep 路径',
ripgrepPathDescription: 'ripgrep 二进制文件的路径。使用 ripgrep 正则搜索时需要此项。',
},