Add tests and search simulator TUI

This commit is contained in:
Tanner
2026-09-08 17:55:40 +00:00
parent ba13d435df
commit f780ed220c
15 changed files with 868 additions and 9 deletions
+15
View File
@@ -0,0 +1,15 @@
export class TFile {
path: string
basename: string
stat = { mtime: 1 }
constructor(path: string) {
this.path = path
this.basename = path.split('/').pop()!.replace(/\.md$/, '')
}
}
export class Notice { constructor(..._args: unknown[]) {} }
export class MarkdownView {}
export const Platform = { isMacOS: false }
export const getAllTags = (metadata: any) => metadata?.tags ?? []
export const parseFrontMatterAliases = (frontmatter: any) => frontmatter?.aliases ?? []
export const normalizePath = (value: string) => value.replaceAll('\\', '/')