Refacto & displaying results more in line with Obsidian's usage

This commit is contained in:
Simon Cambier
2022-04-12 19:34:56 +02:00
parent 9e885cedc4
commit 02c19026b7
3 changed files with 199 additions and 198 deletions

View File

@@ -2,3 +2,21 @@
export const regexWikilink = /^!?\[\[(?<name>.+?)(\|(?<alias>.+?))?\]\]/
export const regexLineSplit = /\r?\n|\r|((\.|\?|!)( |\r?\n|\r))/g
export const regexYaml = /^---\s*\n(.*?)\n?^---\s?/ms
export type SearchNote = {
path: string
basename: string
content: string
}
export type IndexedNote = {
path: string
basename: string
content: string
}
export type ResultNote = {
path: string
basename: string
content: string
}