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

Please change timestamp format to, e.g., 20230306

Open matthjes opened this issue 2 years ago • 3 comments
trafficstars

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):

grafik

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...

matthjes avatar Mar 06 '23 14:03 matthjes

Hey! Well, I'm not sure it's a good trade-off TBH. Also it harms readability .

DimitryDushkin avatar Mar 12 '23 18:03 DimitryDushkin

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 image 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 image

After image

Also it might help with query in future. Thank you!

optimistic5 avatar Apr 19 '23 19:04 optimistic5

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).

DimitryDushkin avatar Apr 19 '23 19:04 DimitryDushkin