better-word-count
better-word-count copied to clipboard
[Feature Request] Option to exclude tags & front matter on word/char count
Pretty much title. I can't imagine any use case where including the tags and other metadata when looking at the unhighlighted word/char count is useful. Right now, I just highlight all of the actual content manually.
I'd very much like to second this.
More exclusion options are on the list.
Please, implement this. Having a large frontmatter often leads to misleading estimates of the content of the file, when looking at the word count.
I'd also like to see an accurate word count for the document's content intended to be read. An option to exclude the front matter from the total word seems to be sorely missing. Novel Word Count plugin for showing word counts and other statistics in the File Explorer sidebar manages to exclude the front matter from its calculations, so it may serve as a reference for how to implement this.
Related: #28
+1 This seems all the more important given Obsidian's new investment in Properties, which is presumably going to lead to us all having more frontmatter content.
Obsidian v1.5 will exclude YAML (front matter) / Properties from the word count, and I think the upstream change will affect the numbers that this plugin reports. As for #tags, that will still need a custom implementation I believe.