Refacto & displaying results more in line with Obsidian's usage
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user