omnivore-app / logseq-omnivore

Logseq plugin to fetch articles and highlights from Omnivore
MIT License
278 stars 15 forks source link

Logseq:Format of date variables and pages name according to that #127

Open yoghurtdewdew opened 10 months ago

yoghurtdewdew commented 10 months ago

Does the date variables support custom formatting?

I would like pages like “Omnivore-YYYY-MM” or “Omnivore-YYYY-W33”, rather than a single page or multiple pages.

sywhb commented 6 months ago

Hey @yoghurtdewdew , sorry for the late reply.

So far we only support custom date format in the page name by changing the "Preferred date format" in the Editor Settings but this is good to add and I can try to add that.

Screenshot 2023-12-08 at 1 34 05 PM
yoghurtdewdew commented 6 months ago
image image

To sync use a single page or multiple pages maybe not easy to see them, so multiple pages use “Omnivore-YYYY-MM” or “Omnivore-YYYY-W33” will be great.

sywhb commented 6 months ago

Yeah, it makes sense. This is something we should do. Probably we can automatically sync into multiple pages if there is a dynamic page name in the settings.

Before that, you can also just put the date variable {{{ date }}} in the "pageName" settings plus the "preferred date format" to achieve what you want.

Screenshot 2023-12-12 at 10 52 09 AM
yoghurtdewdew commented 6 months ago

That didn't solve my problem. Prefered date format surely will be one day & time to know the date & time for each webpage. But pageName I would prefer monthly & weekly pages.

It means, if I set Prefered date format to be YYYY-MM-DD, I get too much pages. If I set Prefered date format to be YYYY-MM, I could not get the day & time of each webpage.