1.14.1-beta.2

This commit is contained in:
Simon Cambier
2023-05-13 22:07:17 +02:00
parent 0d6907abbd
commit a2853fa2fd
3 changed files with 3 additions and 3 deletions

View File

@@ -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": {

View File

@@ -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

View File

@@ -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') + '/'