Edit README.md
This commit is contained in:
parent
7ca78e53ea
commit
7f1361960f
2 changed files with 6 additions and 1 deletions
|
@ -21,6 +21,11 @@ Works with all languages.
|
||||||
- Customization presets
|
- Customization presets
|
||||||
- More stats
|
- More stats
|
||||||
|
|
||||||
|
### Contributors
|
||||||
|
|
||||||
|
- @leoccyao
|
||||||
|
- Added all word, char, sentence count when not viewing a markdown file.
|
||||||
|
|
||||||
### Special Thanks
|
### Special Thanks
|
||||||
|
|
||||||
- @liamcane
|
- @liamcane
|
||||||
|
|
|
@ -105,7 +105,7 @@ export default class BetterWordCount extends Plugin {
|
||||||
let allCharacters = 0;
|
let allCharacters = 0;
|
||||||
let allSentences = 0;
|
let allSentences = 0;
|
||||||
|
|
||||||
for(const f of this.app.vault.getMarkdownFiles()){
|
for (const f of this.app.vault.getMarkdownFiles()) {
|
||||||
let fileContents = await this.app.vault.cachedRead(f);
|
let fileContents = await this.app.vault.cachedRead(f);
|
||||||
allWords += getWordCount(fileContents);
|
allWords += getWordCount(fileContents);
|
||||||
allCharacters += getCharacterCount(fileContents);
|
allCharacters += getCharacterCount(fileContents);
|
||||||
|
|
Loading…
Reference in a new issue