From bb82090ec604dde8a878ceceaf6e156d4fcd8d47 Mon Sep 17 00:00:00 2001 From: Francis Kafieh Date: Wed, 13 Jul 2022 15:20:22 -0400 Subject: [PATCH] made omnisearch create honour the default note location setting --- src/notes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/notes.ts b/src/notes.ts index 29e174a..04dccb8 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', '') + const file = await app.vault.create(`${app.vault.getConfig('newFileFolderPath')}/${name}.md`, '') await app.workspace.openLinkText(file.path, '') const view = app.workspace.getActiveViewOfType(MarkdownView) if (!view) {