logseq-plugin-task-check-date icon indicating copy to clipboard operation
logseq-plugin-task-check-date copied to clipboard

Tasks completed today do not show up in the query

Open ak127a opened this issue 2 years ago • 6 comments

Please note that I have ticked the TODO today, so it shows 17th Oct. image

Now, if on another page, I try to query it, it does not show up. image

ak127a avatar Oct 17 '23 04:10 ak127a

Probably related: https://github.com/DimitryDushkin/logseq-plugin-task-check-date/issues/9

meain avatar Oct 17 '23 04:10 meain

as commented on #9 this problem persists.

It is quite weird that the manual intervention seems needed. I tried to add the hashtag programmatically and still the completed property doesn't appear in backlinks, only modifying the property manually does it :shrug:

clobrano avatar Oct 25 '23 13:10 clobrano

This is most probably a LogSeq problem than an issue with this plugin.

meain avatar Oct 25 '23 14:10 meain

This is a bug in Logseq Plugin API. I have a suggestion. The property value is read into the database under the guise of a user action e.x.

logseq.Editor.insertAtEditingCursor("\ncompleted:: 2024/06/19\n")

This is the way to enter a property directly. Before that happens need to check to delete the property if it exists.

YU000jp avatar Jun 19 '24 11:06 YU000jp

I'm sorry, but I'm not using Logseq anymore and can't verify this

clobrano avatar Jun 20 '24 07:06 clobrano

I've been testing this change to fix it. Using updateBlock instead of upsertBlockProperty seems to trigger queries to update: https://github.com/DimitryDushkin/logseq-plugin-task-check-date/compare/main...bryclee:logseq-plugin-task-check-date:main

~~It does not seem to work as reliably, if the block is still in edit mode then it would not be updated~~ After some changes, this is fixed too. Only remaining quirk is that cursor position shifts when the block properties are edited and block is in editing mode.

bryclee avatar Dec 06 '24 21:12 bryclee