From a5b031aca5e1f68f83e74da70d1412b6402250a7 Mon Sep 17 00:00:00 2001 From: Simon Cambier Date: Thu, 7 Jul 2022 18:37:01 +0200 Subject: [PATCH] Fixed #77 Files created through Omnisearch are now empty, instead of containing default title --- src/notes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/notes.ts b/src/notes.ts index 8445058..29e174a 100644 --- a/src/notes.ts +++ b/src/notes.ts @@ -98,7 +98,7 @@ export async function openNote( export async function createNote(name: string): Promise { try { - const file = await app.vault.create(name + '.md', '# ' + name + '\n') + const file = await app.vault.create(name + '.md', '') await app.workspace.openLinkText(file.path, '') const view = app.workspace.getActiveViewOfType(MarkdownView) if (!view) {