That would be brilliant, even a simple basic word count would be helpful to me, to begin with. Loving this product. Ideally, word and character would be good. then if possible selective word count (highlight a block or blocks and see its word count) in an ideal world an estimated reading time also
I write a lot of funding bids for my projects and other similar things and they always insist on character counts. Now it is not so much of a problem as I screen everything through Grammarly and this has all those bells and whistles. But having it in the note app would stop me overwriting these kinds of things in the first place.
Thanks for getting back to me on this, appreciated
Definitely happy to try out as plugin and feedback
My work involves either producing essays to a precise word limit and also producing sermons which need to last for a given time (which I can quickly estimate with word count). At the moment I’m exporting to Word using Pandoc and counting there for an accurate count.
I’ve found a Chrome extension “Word Counter Plus” which gives a rough estmate which helps for now, but it breaks flow to have to select text then use the extension.
Would the team accept a PR that adds a wordcount widget?
There are two approaches I’m considering, and we could do both or just one. I lean towards both because they achieve slightly different ends, but it might be better to keep it to one to keep the app simpler.
We could build a widget that works like the following example, where this markdown…
- this is a bullet with 7 words
- this bullet has 5 words
Wouldn’t this be better as a plugin? A while ago one of the devs mentioned they would prefer more functionality in plugins, which sounds reasonable: the smaller the code base, the easier it is to keep stable.
As far as the approaches go, I would prefer the first one, I never want word count, unless I specifically want it. The menu is filled with lots of stuff already, adding something you don’t need that often is just bloat.
Despite the negative tone of the previous comment, a word count widget would be really useful.
PS But anybody who collects Dune quotes gets a pass in my book
But thinking about it, Logseq has a lot of meta-data in between text, so a really good word count plugin would be able to filter those out. Also embedded blocks, should they be counted or not? Honestly no idea if a plugin even has access to that information.
Thank you for the pointers! I’d been meaning to check out the plugin stuff for a while, so this is really helpful.
You’re right, we’ll definitely need to be careful of that when implementing this feature. Good call out!
I thought on it some more, and I think word count is a standard enough feature that it should be in the core. We should err on the side of plugins for most things in order to keep the core small, but I think most people would expect word count to be baked in.
I’ll let the core team make the final call though! @tienson what do you think?