This commit is contained in:
Simon Cambier
2023-02-11 17:27:24 +01:00
parent 088c3b77ac
commit 7334af9618
2 changed files with 4 additions and 1 deletions

View File

@@ -29,6 +29,7 @@ Under the hood, it uses the excellent [MiniSearch](https://github.com/lucaong/mi
- Resistance to typos - Resistance to typos
- Switch between Vault and In-file search to quickly skim multiple results in a single note - Switch between Vault and In-file search to quickly skim multiple results in a single note
- Supports `"expressions in quotes"` and `-exclusions` - Supports `"expressions in quotes"` and `-exclusions`
- Filters file types with '.jpg' or '.md'
- Directly Insert a `[[link]]` from the search results - Directly Insert a `[[link]]` from the search results
- Supports Vim navigation keys - Supports Vim navigation keys
@@ -77,6 +78,8 @@ object `omnisearch` (`window.omnisearch`)
type OmnisearchApi = { type OmnisearchApi = {
// Returns a promise that will contain the same results as the Vault modal // Returns a promise that will contain the same results as the Vault modal
search: (query: string) => Promise<ResultNoteApi[]>, search: (query: string) => Promise<ResultNoteApi[]>,
// Refreshes the index
refreshIndex: () => Promise<void>
// Register a callback that will be called when the indexing is done // Register a callback that will be called when the indexing is done
registerOnIndexed: (callback: () => void) => void, registerOnIndexed: (callback: () => void) => void,
// Unregister a callback that was previously registered // Unregister a callback that was previously registered

View File

@@ -1,6 +1,6 @@
{ {
"name": "scambier.obsidian-search", "name": "scambier.obsidian-search",
"version": "1.11.1", "version": "1.12.0",
"description": "A search engine for Obsidian", "description": "A search engine for Obsidian",
"main": "dist/main.js", "main": "dist/main.js",
"scripts": { "scripts": {