ebullient / obsidian-task-collector

Plugin for https://obsidian.md/ that assists with managing tasks within a document.
GNU Affero General Public License v3.0
185 stars 6 forks source link

Click Handling can't distinguish identical tasks #354

Open bodydiv opened 8 months ago

bodydiv commented 8 months ago

If I have a list with identical tasks, like so:

And I click the checkbox of the bottom-most Task A, it will bring up the mark modal, but it will mark the TOP-most Task A as completed. Instead of marking the task my cursor is clicking, it will find the first task in the document matching the task text and mark that one as completed. If there are multiple Task A's, it will always mark the first Task A instead of the correct one under the cursor. This behavior is not observed when just right-clicking and selecting the TC modal from the context menu.

I understand this is probably a symptom of how the addon works (searching for the task text in order to select it), but is it possible to fix?

TC is the only community plugin I have installed.

TC version 1.0.13 Obsidian version 1.4.16

ebullient commented 8 months ago

I'll see what I can do. I think the issue (if you want to play with some inspection) is the data available in the event to figure out which task it is). There is meta-information in reading mode, IIRC, that is not present in live preview.

ebullient commented 4 months ago

Hmm. I can't reproduce this with 1.0.16 against 1.5.7.

Reading mode or Live preview?