made omnisearch create honour the default note location setting (#81)
This commit is contained in:
@@ -98,7 +98,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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user