1.14.1-beta.2
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
import { cancelable, CancelablePromise } from 'cancelable-promise'
|
||||
|
||||
export let modal: OmnisearchVaultModal
|
||||
let previousQuery: string | undefined
|
||||
export let previousQuery: string | undefined
|
||||
let selectedIndex = 0
|
||||
let historySearchIndex = 0
|
||||
let searchQuery: string | undefined
|
||||
|
||||
@@ -52,7 +52,7 @@ export async function createNote(name: string, newLeaf = false): Promise<void> {
|
||||
let pathPrefix: string
|
||||
switch (app.vault.getConfig('newFileLocation')) {
|
||||
case 'current':
|
||||
pathPrefix = (app.workspace.getActiveFile()?.parent.path ?? '') + '/'
|
||||
pathPrefix = (app.workspace.getActiveFile()?.parent?.path ?? '') + '/'
|
||||
break
|
||||
case 'folder':
|
||||
pathPrefix = app.vault.getConfig('newFileFolderPath') + '/'
|
||||
|
||||
Reference in New Issue
Block a user