obsidian-todoist-text icon indicating copy to clipboard operation
obsidian-todoist-text copied to clipboard

[feature] add support for mouse click on task

Open wesmoncrief opened this issue 2 years ago • 1 comments

wesmoncrief avatar Mar 06 '22 02:03 wesmoncrief

seems tougher than expected. Looks like I should do something like:

Have your plugin hook a cm6 view plugin which adds a delegated event on the content Dom for the task checkbox, then detach it on destroy In your event you can use view.posAtDom(event.target) to figure out where the checkbox is

and more all around this: https://discord.com/channels/686053708261228577/840286264964022302/921509871168401439

maybe this repository eventually figured it out: https://github.com/schemar/obsidian-tasks/commit/6fd2cd3e78b3da107e1e5f1acb95a9d263dd72b7#diff-1780b53fbd56a6102cd477fd1641537d7eb257e743527749d4d58e6469145e6bR31

wesmoncrief avatar Mar 11 '22 00:03 wesmoncrief