1.14.1-beta.2
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "scambier.obsidian-search",
|
||||
"version": "1.14.1-beta.1",
|
||||
"version": "1.14.1-beta.2",
|
||||
"description": "A search engine for Obsidian",
|
||||
"main": "dist/main.js",
|
||||
"scripts": {
|
||||
|
||||
@@ -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