diff --git a/README.md b/README.md index 3b18730..e831547 100644 --- a/README.md +++ b/README.md @@ -9,9 +9,10 @@ Quickly add new pages or content to your vault. You can also do a [manual installation](docs/ManualInstallation.md). ## What's new? -### 0.5.0 - 0.5.1 +### 0.5.0 - 0.5.2 - Added support for scripts on mobile devices. - (0.5.1) Exposed Obsidian API for scripts. Only works for desktop usage. +- (0.5.2) Hotfix: don't override pinned panes. ### 0.4.19 - 0.4.22 - Fix issues preventing the creation of folders with Template choices. diff --git a/manifest.json b/manifest.json index d0aaf04..3aa8b05 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "quickadd", "name": "QuickAdd", - "version": "0.5.1", + "version": "0.5.2", "minAppVersion": "0.13.19", "description": "Quickly add new pages or content to your vault.", "author": "Christian B. B. Houmann", diff --git a/package.json b/package.json index da7a75c..90ab6bb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "quickadd", - "version": "0.5.1", + "version": "0.5.2", "description": "Quickly add new pages or content to your vault.", "main": "main.js", "scripts": { diff --git a/src/utility.ts b/src/utility.ts index 50c6f5d..b7d321c 100644 --- a/src/utility.ts +++ b/src/utility.ts @@ -153,7 +153,7 @@ export async function openFile(app: App, file: TFile, optional?: {openInNewTab?: if (optional?.openInNewTab && optional?.direction) { leaf = app.workspace.splitActiveLeaf(optional.direction); } else { - leaf = app.workspace.activeLeaf; + leaf = app.workspace.getUnpinnedLeaf(); } await leaf.openFile(file) diff --git a/versions.json b/versions.json index 3f31509..b66bd38 100644 --- a/versions.json +++ b/versions.json @@ -3,5 +3,5 @@ "0.4.17": "0.12.17", "0.4.18": "0.13.19", "0.4.21": "0.13.19", - "0.5.1": "0.13.19" + "0.5.2": "0.13.19" }