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
77 stars 7 forks source link

[Feature request] Only show file counts on enabled extensions #57

Closed RLGingerBiscuit closed 9 months ago

RLGingerBiscuit commented 9 months ago

Problem

I believe that if a file is not in the allowed extensions list, it shouldn't show the word count in the file explorer, as it will always show '0 words'.

Idea

The simple solution (as implemented in in #56), simply disables all information if the extension isn't in the whitelist (whilst not affecting folders in any way). It could possibly be made a setting, and perhaps file size and dates should be allowed to be shown.

isaaclyman commented 9 months ago

I think the lowest-friction solution here is to hide "conditional" counts such as character/word/page on files that shouldn't be counted and on folders that only contain such files; and to always show "unconditional" counts such as created date and file size. I've pushed a commit to that effect. Thank you very much for your issue and PR.