#109 - opt-out to keep line returns in excerpts

And removed the "show notice" setting
This commit is contained in:
Simon Cambier
2022-11-09 22:01:02 +01:00
parent 32161ca94a
commit 6be174eeb9
6 changed files with 121 additions and 94 deletions

View File

@@ -107,9 +107,7 @@ export function markNoteForReindex(note: TAbstractFile): void {
export async function refreshIndex(): Promise<void> {
if (notesToReindex.size > 0) {
if (settings.showIndexingNotices) {
new Notice(`Omnisearch - Reindexing ${notesToReindex.size} notes`, 2000)
}
console.info(`Omnisearch - Reindexing ${notesToReindex.size} notes`)
for (const note of notesToReindex) {
removeFromIndex(note.path)
await addToIndexAndMemCache(note)