diff --git a/src/notes.ts b/src/notes.ts index 85b2575..f6a5db0 100644 --- a/src/notes.ts +++ b/src/notes.ts @@ -95,7 +95,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) {