Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] add support for mouse click on task #16

Open
wesmoncrief opened this issue Mar 6, 2022 · 1 comment
Open

[feature] add support for mouse click on task #16

wesmoncrief opened this issue Mar 6, 2022 · 1 comment

Comments

@wesmoncrief
Copy link
Owner

No description provided.

@wesmoncrief
Copy link
Owner Author

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: obsidian-tasks-group/obsidian-tasks@6fd2cd3#diff-1780b53fbd56a6102cd477fd1641537d7eb257e743527749d4d58e6469145e6bR31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant