Merge branch 'master' of github.com:scambier/obsidian-omnisearch

This commit is contained in:
Simon Cambier
2022-07-14 08:24:38 +02:00

View File

@@ -95,7 +95,7 @@ export async function openNote(
export async function createNote(name: string): Promise<void> { export async function createNote(name: string): Promise<void> {
try { 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, '') await app.workspace.openLinkText(file.path, '')
const view = app.workspace.getActiveViewOfType(MarkdownView) const view = app.workspace.getActiveViewOfType(MarkdownView)
if (!view) { if (!view) {