Skip to content

Commit

Permalink
fix search and create file but open in leftLeaf
Browse files Browse the repository at this point in the history
  • Loading branch information
Wanxp committed Jan 3, 2023
1 parent a00cdc5 commit afecbcd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "obsidian-douban-plugin",
"name": "Douban",
"version": "1.7.9",
"version": "1.8.0",
"minAppVersion": "0.12.0",
"description": "This is a plugin that can import movies/books/musics/notes/games info data from Douban for Obsidian .",
"author": "Wanxp",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-douban-plugin",
"version": "1.7.9",
"version": "1.8.0",
"description": "This is a plugin for Obsidian (https://obsidian.md) that can import data from Douban (https://www.douban.com/).",
"main": "main.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/org/wanxp/file/FileHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export default class FileHandler {
const File = await vault.create(filePath, data);
// Create the file and open it in the active leaf
if (showAfterCreate) {
const leaf = this._app.workspace.getRightLeaf(true);
const leaf = this._app.workspace.getLeaf(true);
await leaf.openFile(File);
}
return true;
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@
"1.7.6": "0.12.0",
"1.7.7": "0.12.0",
"1.7.8": "0.12.0",
"1.7.9": "0.12.0"
"1.7.9": "0.12.0",
"1.8.0": "0.12.0"
}

0 comments on commit afecbcd

Please sign in to comment.