diff --git a/src/main.ts b/src/main.ts index fe4847a..85269b9 100644 --- a/src/main.ts +++ b/src/main.ts @@ -148,7 +148,7 @@ async function populateIndex(): Promise { ) } - if (diff.toAdd.length >= 500) { + if (diff.toAdd.length >= 1000 && !Platform.isIosApp) { new Notice( `Omnisearch - ${diff.toAdd.length} files need to be indexed. Obsidian may experience stutters and freezes during the process`, 10_000 @@ -165,7 +165,7 @@ async function populateIndex(): Promise { } console.timeEnd('Omnisearch - Indexing total time') - if (diff.toAdd.length >= 500) { + if (diff.toAdd.length >= 1000) { new Notice(`Omnisearch - Your files have been indexed.`) } indexingStep.set(IndexingStepType.Done) diff --git a/src/settings.ts b/src/settings.ts index 35ecc5e..d503a99 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -87,13 +87,8 @@ export class SettingsTab extends PluginSettingTab { if (!Platform.isMobileApp) { const indexPDFsDesc = new DocumentFragment() indexPDFsDesc.createSpan({}, span => { - span.innerHTML = `Omnisearch will include PDFs in search results. - + span.innerHTML = `Omnisearch will include PDFs in search results.
+ ⚠️ PDFs first need to be processed. This can take anywhere from a few seconds to 2 minutes, then the resulting text is cached. Needs a restart to fully take effect.` }) new Setting(containerEl) @@ -131,8 +126,10 @@ export class SettingsTab extends PluginSettingTab { // Additional files to index const indexedFileTypesDesc = new DocumentFragment() indexedFileTypesDesc.createSpan({}, span => { - span.innerHTML = `In addition to standard md files, Omnisearch can also index other plain text files.
+ span.innerHTML = `In addition to standard md files, Omnisearch can also index other plaintext files.
Add extensions separated by a space, without the dot. Example: "txt org".
+ ⚠️ Using extensions of non-plaintext files (like .docx or .pptx) WILL cause crashes, + because Omnisearch will try to index their content.
Needs a restart to fully take effect.` }) new Setting(containerEl) @@ -172,8 +169,8 @@ export class SettingsTab extends PluginSettingTab { const diacriticsDesc = new DocumentFragment() diacriticsDesc.createSpan({}, span => { span.innerHTML = `Normalize diacritics in search terms. Words like "brûlée" or "žluťoučký" will be indexed as "brulee" and "zlutoucky".
- You probably shouldn't disable this.
- Needs a restart to fully take effect.
+ ⚠️You probably should NOT disable this.
+ Needs a restart to fully take effect. ` }) new Setting(containerEl)