Skip to content

Commit 57b1cd8

Browse files
committed
Bugfix for #17 - plugin closes most recent tab
Version bump for release
1 parent 2ac5a12 commit 57b1cd8

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "custom-sort",
33
"name": "Custom File Explorer sorting",
4-
"version": "0.7.2",
4+
"version": "0.8.1",
55
"minAppVersion": "0.15.0",
66
"description": "Allows for manual and automatic, config-driven reordering and sorting of files and folders in File Explorer",
77
"author": "SebastianMC <SebastianMC.github@gmail.com>",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "obsidian-custom-sort",
3-
"version": "0.7.2",
3+
"version": "0.8.1",
44
"description": "Custom Sort plugin for Obsidian (https://obsidian.md)",
55
"main": "main.js",
66
"scripts": {

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ export default class CustomSortPlugin extends Plugin {
235235
// For the idea of monkey-patching credits go to https://github.com/nothingislost/obsidian-bartender
236236
patchFileExplorerFolder() {
237237
let plugin = this;
238-
let leaf = this.app.workspace.getLeaf();
238+
let leaf = this.app.workspace.getLeaf(true);
239239
const fileExplorer = this.app.viewRegistry.viewByType["file-explorer"](leaf) as FileExplorerView;
240240
// @ts-ignore
241241
let tmpFolder = new TFolder(Vault, "");

versions.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@
66
"0.6.2": "0.12.0",
77
"0.7.0": "0.15.0",
88
"0.7.1": "0.15.0",
9-
"0.7.2": "0.15.0"
9+
"0.7.2": "0.15.0",
10+
"0.8.0": "0.15.0",
11+
"0.8.1": "0.15.0"
1012
}

0 commit comments

Comments
 (0)