diff --git a/manifest.json b/manifest.json index 0f515a1..9d2ba5b 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "pane-relief", "name": "Pane Relief", - "version": "0.5.5", + "version": "0.5.6", "minAppVersion": "1.5.8", "description": "Per-tab history, hotkeys for pane/tab movement, navigation, sliding workspace, and more", "author": "PJ Eby", diff --git a/src/focus-lock.ts b/src/focus-lock.ts index 9683e9b..23b808d 100644 --- a/src/focus-lock.ts +++ b/src/focus-lock.ts @@ -41,6 +41,8 @@ export class FocusLock extends Service { // Handle the case where there was no prior active leaf if (!this.activeLeaf || !isLeafAttached(this.activeLeaf)) return old.call(this, this.getLeaf(), ...etc); + // Obsidian 1.7.x handles search focusing differently; this restores the old behavior + if (leaf.view?.getViewType() === "search" && etc[0] === true || etc[0]?.focus) leaf.setEphemeralState({focus: true}); }}, revealLeaf(old) { return function(leaf: WorkspaceLeaf) { diff --git a/versions.json b/versions.json index 14b7adc..4d84991 100644 --- a/versions.json +++ b/versions.json @@ -1,7 +1,6 @@ { + "0.5.6": "1.5.8", "0.5.5": "1.5.8", - "0.5.4": "1.5.8", - "0.5.3": "1.5.8", "0.5.2": "1.3.5", "0.5.1": "1.2.8", "0.4.2": "0.15.9",