isaaclyman / novel-word-count-obsidian

Obsidian plugin. Displays a word count or other statistic for each file, folder and vault in the File Explorer pane.
https://obsidian.md/plugins?id=novel-word-count
MIT License
82 stars 8 forks source link

List item prefixes are counted as words #62

Closed redactedscribe closed 12 months ago

redactedscribe commented 12 months ago

Description

7 words:

- 1
- 2
- 3
- 

Same goes for *- and +-prefixed lists. The core plugin "Word count" also has this issue, but only for --prefixed lists (which will hopefully be fixed).

Device

Windows.

I originally posted this here by accident. I was attempting to see why word counts were not the same and got the repos confused.

Thanks.

Edit: Apparently this is a known special case.

isaaclyman commented 12 months ago

Novel Word Count defines a "word" as any sequence of one or more non-whitespace characters.

I'm reluctant to change this for a few reasons:

I'm closing this for now, but if more users start requesting it, I can reconsider.

isaaclyman commented 7 months ago

@redactedscribe This should be fixed now (v3.4.0).

redactedscribe commented 7 months ago

Nice! Seems to work, thanks.