mirror of
https://github.com/Wanxp/obsidian-douban.git
synced 2026-04-04 16:48:44 +08:00
fix search and create file but open in leftLeaf
This commit is contained in:
parent
a00cdc59ed
commit
afecbcdcd0
@ -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",
|
||||
|
||||
@ -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": {
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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"
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user