Bugfix for #17 - plugin closes most recent tab
Version bump for release
This commit is contained in:
parent
2ac5a12a2c
commit
57b1cd8ae2
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "custom-sort",
|
||||
"name": "Custom File Explorer sorting",
|
||||
"version": "0.7.2",
|
||||
"version": "0.8.1",
|
||||
"minAppVersion": "0.15.0",
|
||||
"description": "Allows for manual and automatic, config-driven reordering and sorting of files and folders in File Explorer",
|
||||
"author": "SebastianMC <SebastianMC.github@gmail.com>",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "obsidian-custom-sort",
|
||||
"version": "0.7.2",
|
||||
"version": "0.8.1",
|
||||
"description": "Custom Sort plugin for Obsidian (https://obsidian.md)",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
|
|
@ -235,7 +235,7 @@ export default class CustomSortPlugin extends Plugin {
|
|||
// For the idea of monkey-patching credits go to https://github.com/nothingislost/obsidian-bartender
|
||||
patchFileExplorerFolder() {
|
||||
let plugin = this;
|
||||
let leaf = this.app.workspace.getLeaf();
|
||||
let leaf = this.app.workspace.getLeaf(true);
|
||||
const fileExplorer = this.app.viewRegistry.viewByType["file-explorer"](leaf) as FileExplorerView;
|
||||
// @ts-ignore
|
||||
let tmpFolder = new TFolder(Vault, "");
|
||||
|
|
|
@ -6,5 +6,7 @@
|
|||
"0.6.2": "0.12.0",
|
||||
"0.7.0": "0.15.0",
|
||||
"0.7.1": "0.15.0",
|
||||
"0.7.2": "0.15.0"
|
||||
"0.7.2": "0.15.0",
|
||||
"0.8.0": "0.15.0",
|
||||
"0.8.1": "0.15.0"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue