YU000jp / logseq-plugin-show-weekday-and-week-number

Enhance journal functions of Logseq (Beside Journal Title and 2 Lines Calendar etc...)
https://discuss.logseq.com/t/show-week-day-and-week-number/12685/1
MIT License
41 stars 0 forks source link

Feature request: show which dates have an existing journal entry #130

Closed hmijail closed 10 months ago

hmijail commented 10 months ago

Would be great it dates with a journal had a dot or some indicator, just like the "Journals Calendar" plugin does.

YU000jp commented 10 months ago

Is it okay to just know if the page exists? It's not impossible. But it will require processing more frequently than the plugin, in this plugin. After verifying the load level, add it to the plugin settings. It is necessary to reduce processing as much as possible.

hmijail commented 10 months ago

Personally, I purge the empty pages from time to time, so I guess checking for page existence would be enough... though of course it'd be best if it could check whether pages actually contain something.

hmijail commented 10 months ago

(I guess this is yet another example of why the existence of empty journal pages is a problem that should be fixed in Logseq!)

YU000jp commented 10 months ago

@hmijail I included this change in a new version and released it. Please let me know if any changes still need to be made.

hmijail commented 10 months ago

Finally I got the update. Looks great, thank you!

YU000jp commented 10 months ago

(I guess this is yet another example of why the existence of empty journal pages is a problem that should be fixed in Logseq!)

@hmijail It might be possible to create a plugin that checks for a week's worth of journals that are empty. Checking the contents of all files requires a processing load, but I don't think it's a problem if it's about 7 pages. The check process is based on the time difference. To check them when a plugin is loaded or when a journal is created. And delete it. I would like to know the contents of the file in that case. I think it probably looks like "-". ( I don't have this issue, so I don't know the details. ) https://discuss.logseq.com/t/auto-delete-empty-journal/1825/5 If you have any other links with more details, please let me know.

hmijail commented 10 months ago

I was going to answer that actually it might be easiest to, when creating a new day's journal, just delete the previous day's if it's empty. But turns out that that link you posted proposes just that.

Unfortunately looks like 75 votes and 1+ year of discussion across 2 forums is not enough.