diff --git a/docs/changelog.md b/docs/changelog.md index 55520e6c..0b10630b 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file. Dates are d Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). + +## [1.10.1.7] + +- 新增:卡片中打开笔记; +- 与主分支同步; +- 新增:在更新插件后,弹出更新说明; +- 新增:设置中可跳转到issue的链接; +- 新增:打赏码; +- 修复:一些小bugs. + ## [1.10.1.6] - 修复 根据标签输出日志文件 diff --git a/package-lock.json b/package-lock.json index 67fdaa94..b7406268 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "obsidian-spaced-repetition", - "version": "1.10.1.6", + "version": "1.10.1.7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "obsidian-spaced-repetition", - "version": "1.10.1.6", + "version": "1.10.1.7", "license": "MIT", "dependencies": { "chart.js": "^4.3.3", diff --git a/package.json b/package.json index 51d2f8a4..b0996ca2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-spaced-repetition", - "version": "1.10.1.6", + "version": "1.10.1.7", "description": "Fight the forgetting curve by reviewing flashcards & entire notes.", "main": "main.js", "scripts": { diff --git a/src/flashcard-modal-algo.tsx b/src/flashcard-modal-algo.tsx index c14e872c..cc6b8bbb 100644 --- a/src/flashcard-modal-algo.tsx +++ b/src/flashcard-modal-algo.tsx @@ -312,6 +312,7 @@ export class FlashcardModal extends Modal { this.openNoteFileButton.addEventListener("click", async () => { const activeLeaf: WorkspaceLeaf = this.plugin.app.workspace.getLeaf(); await activeLeaf.openFile(this.currentCard.note); + this.app.workspace.setActiveLeaf(activeLeaf); const activeView: MarkdownView = this.app.workspace.getActiveViewOfType(MarkdownView); if (activeView) { @@ -321,7 +322,7 @@ export class FlashcardModal extends Modal { }); activeView.editor.scrollIntoView({ from: { - line: this.currentCard.lineNo, + line: this.currentCard.lineNo + 20, ch: 0, }, to: {