logseq-plugin-task-check-date
logseq-plugin-task-check-date copied to clipboard
Please change timestamp format to, e.g., 20230306
If you want to query for dates, I think you need to change the timestamp format to just, e.g., 20230306 . I've tested it locally (today is 20230306):

Query
#+BEGIN_QUERY
{
:title "Tasks completed yesterday"
:query [
:find (pull ?b [*])
:in $ ?start ?end
:where
[?b :block/properties ?properties]
[(get ?properties :completed) ?completed]
[(>= ?completed ?start)]
[(< ?completed ?end)]
]
:inputs [:yesterday :today]
}
#+END_QUERY
The query should show all tasks that were completed yesterday. After changing the timestamp format it finally worked.
The drawback is that you lose the link to a journal page...
Hey! Well, I'm not sure it's a good trade-off TBH. Also it harms readability .
Hi @DimitryDushkin Cool plugin, it might help me with my workflow. I would support topic starter and add few details.
Feature request:
Plugin should use format of page title. This format is set in setting by user, it can be different
You can read this format from config.edn, in my case this is
:journal/page-title-format "E, dd.MM.yyyy"
After plugin will read format it will create tag with proper tag of existing journal page, so linking will be correct. Because in my case it created page which leads to nothing.
Before

After

Also it might help with query in future. Thank you!
Hey @optimistic5! TBH I'm not planning any plugin development now. If you kindly will send a PR I'll merge it and will make a new release. Personally I'm using Obsidian now. It's much more mature and not known for loosing data (which is the case for Logseq).