Removed useless excalidraw toggle
This commit is contained in:
@@ -131,7 +131,7 @@ async function getAndMapIndexedDocument(
|
|||||||
|
|
||||||
// EXCALIDRAW
|
// EXCALIDRAW
|
||||||
// Remove the json code
|
// Remove the json code
|
||||||
if (settings.excalidrawIndexing && metadata.frontmatter?.['excalidraw-plugin']) {
|
if (metadata.frontmatter?.['excalidraw-plugin']) {
|
||||||
const comments =
|
const comments =
|
||||||
metadata.sections?.filter(s => s.type === 'comment') ?? []
|
metadata.sections?.filter(s => s.type === 'comment') ?? []
|
||||||
for (const { start, end } of comments.map(c => c.position)) {
|
for (const { start, end } of comments.map(c => c.position)) {
|
||||||
|
|||||||
@@ -86,6 +86,7 @@ export class Omnisearch {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
private minisearch: MiniSearch
|
private minisearch: MiniSearch
|
||||||
|
/** Map<path, mtime> */
|
||||||
private indexedDocuments: Map<string, number> = new Map()
|
private indexedDocuments: Map<string, number> = new Map()
|
||||||
// private previousResults: SearchResult[] = []
|
// private previousResults: SearchResult[] = []
|
||||||
// private previousQuery: Query | null = null
|
// private previousQuery: Query | null = null
|
||||||
|
|||||||
@@ -37,8 +37,6 @@ export interface OmnisearchSettings extends WeightingSettings {
|
|||||||
PDFIndexing: boolean
|
PDFIndexing: boolean
|
||||||
/** Enable Images indexing */
|
/** Enable Images indexing */
|
||||||
imagesIndexing: boolean
|
imagesIndexing: boolean
|
||||||
/** Enable Excalidraw indexing */
|
|
||||||
excalidrawIndexing: boolean
|
|
||||||
/** Enable indexing of unknown files */
|
/** Enable indexing of unknown files */
|
||||||
unsupportedFilesIndexing: 'yes' | 'no' | 'default'
|
unsupportedFilesIndexing: 'yes' | 'no' | 'default'
|
||||||
/** Activate the small 🔍 button on Obsidian's ribbon */
|
/** Activate the small 🔍 button on Obsidian's ribbon */
|
||||||
@@ -605,7 +603,6 @@ export const DEFAULT_SETTINGS: OmnisearchSettings = {
|
|||||||
indexedFileTypes: [] as string[],
|
indexedFileTypes: [] as string[],
|
||||||
PDFIndexing: false,
|
PDFIndexing: false,
|
||||||
imagesIndexing: false,
|
imagesIndexing: false,
|
||||||
excalidrawIndexing: true,
|
|
||||||
unsupportedFilesIndexing: 'no',
|
unsupportedFilesIndexing: 'no',
|
||||||
splitCamelCase: false,
|
splitCamelCase: false,
|
||||||
openInNewPane: false,
|
openInNewPane: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user