logseq-plugin-task-check-date
logseq-plugin-task-check-date copied to clipboard
Tasks completed today do not show up in the query
Please note that I have ticked the TODO today, so it shows 17th Oct.
Now, if on another page, I try to query it, it does not show up.
Probably related: https://github.com/DimitryDushkin/logseq-plugin-task-check-date/issues/9
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:
This is most probably a LogSeq problem than an issue with this plugin.
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.
I'm sorry, but I'm not using Logseq anymore and can't verify this
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.