#58 - new behavior

Omnisearch no longer register extensions, PDFs are indexed after plaintext files, updated settings descriptions
This commit is contained in:
Simon Cambier
2022-10-01 13:58:11 +02:00
parent 7dc01ecc8f
commit 124e5f5d61
6 changed files with 61 additions and 36 deletions

View File

@@ -2,8 +2,8 @@ import { Notice, TAbstractFile, TFile } from 'obsidian'
import {
extractHeadingsFromCache,
getAliasesFromMetadata,
getTagsFromMetadata,
isFileIndexable,
getTagsFromMetadata, isFileIndexable,
isFilePlaintext,
removeDiacritics,
wait,
} from './utils'
@@ -129,7 +129,7 @@ export function addNonExistingToIndex(name: string, parent: string): void {
* @param path
*/
export function removeFromIndex(path: string): void {
if (!isFileIndexable(path)) {
if (!isFilePlaintext(path)) {
console.info(`"${path}" is not an indexable file`)
return
}