Skip to content

Commit 7417539

Browse files
committed
Fix #86 - navigating in non-nav leaves
1 parent f7b1668 commit 7417539

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "Quick Explorer",
44
"author": "PJ Eby",
55
"authorUrl": "https://github.com/pjeby",
6-
"version": "0.2.11",
6+
"version": "0.2.12",
77
"description": "Perform file explorer operations (and see your current file path) from the title bar, using the mouse or keyboard",
88
"minAppVersion": "1.5.8",
99
"isDesktopOnly": true

src/quick-explorer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {MenuItem, Plugin, TFolder} from "./obsidian";
2-
import {use, command, addCommands, isLeafAttached, StyleSettings} from "@ophidian/core";
2+
import {app, use, command, addCommands, isLeafAttached, StyleSettings} from "@ophidian/core";
33
import {Explorer, hoverSource} from "./Explorer";
44

55
import "./redom-jsx";
@@ -71,7 +71,7 @@ export default class QE extends Plugin {
7171
return () => {
7272
const curFile = app.workspace.getActiveFile();
7373
const goFile = curFile && navigateFile(curFile, dir, relative);
74-
if (goFile && goFile !== curFile) app.workspace.activeLeaf.openFile(goFile);
74+
if (goFile && goFile !== curFile) app.workspace.getLeaf().openFile(goFile);
7575
}
7676
}
7777

versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"0.2.11": "1.5.8",
2+
"0.2.12": "1.5.8",
33
"0.2.8": "0.15.9",
44
"0.1.41": "0.15.9",
55
"0.1.37": "0.14.5",

0 commit comments

Comments
 (0)