From 7fbe021a2fb4d6fc7ea13ff2bd8cd7a6b608d006 Mon Sep 17 00:00:00 2001 From: HeroBlackInk Date: Sat, 10 Jun 2023 00:24:33 +0800 Subject: [PATCH] release 1.0.40 --- main.ts | 7 +++++-- manifest.json | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/main.ts b/main.ts index c32d2e6..7a474c8 100644 --- a/main.ts +++ b/main.ts @@ -125,7 +125,7 @@ export default class UltimateTodoistSyncForObsidian extends Plugin { }); -/* In the 1.0.37 version, editor-change no longer detects new tasks. + //hook editor-change 事件,如果当前line包含 #todoist,说明有new task this.registerEvent(this.app.workspace.on('editor-change',async (editor,view:MarkdownView)=>{ try{ @@ -137,6 +137,9 @@ export default class UltimateTodoistSyncForObsidian extends Plugin { if(!(this.checkModuleClass())){ return } + if(this.settings.enableFullVaultSync){ + return + } if (!await this.checkAndHandleSyncLock()) return; await this.todoistSync.lineContentNewTaskCheck(editor,view) this.syncLock = false @@ -148,7 +151,7 @@ export default class UltimateTodoistSyncForObsidian extends Plugin { } })) -*/ + /* 使用其他文件管理器移动,obsidian触发了删除事件,删除了所有的任务 diff --git a/manifest.json b/manifest.json index 9471cf8..8ed8486 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "ultimate-todoist-sync", "name": "Ultimate Todoist Sync", - "version": "1.0.39", + "version": "1.0.40", "minAppVersion": "1.0.0", "description": "This is the best Todoist task synchronization plugin for Obsidian so far.", "author": "HeroBlackInk",