diff --git a/manifest.json b/manifest.json index 5cf7934..5809491 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "better-word-count", "name": "Better Word Count", - "version": "0.6.2", + "version": "0.7.0", "description": "Counts the words of selected text in the editor.", "author": "Luke Leppan", "authorUrl": "https://lukeleppan.com", diff --git a/package.json b/package.json index c444c31..f4dcdd3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "better-word-count", - "version": "0.6.2", + "version": "0.7.0", "description": "Counts the words of selected text in the editor.", "main": "main.js", "scripts": { diff --git a/src/settings/settings-tab.ts b/src/settings/settings-tab.ts index 6b9f4e4..c46f1ed 100644 --- a/src/settings/settings-tab.ts +++ b/src/settings/settings-tab.ts @@ -96,5 +96,37 @@ export class BetterWordCountSettingsTab extends PluginSettingTab { this.plugin.saveSettings(); }); }); + + this.containerEl.createEl("h3", { + text: "Syntax for the status bars works like this: ", + }); + + this.containerEl.createEl("li", { + text: "To get a stat input the name of the stat in between `{}` eg. `{word_count}`.", + }); + + this.containerEl.createEl("li", { + text: "All other words remain.", + }); + + this.containerEl.createEl("br"); + + this.containerEl.createEl("h4", { + text: "Available Stats:", + }); + + this.containerEl.createEl("p", { + text: + "word_count, " + + "character_count, " + + "sentence_count, " + + "total_word_count, " + + "total_character_count, " + + "total_sentence_count, " + + "file_count, " + + "words_today, " + + "characters_today, " + + "sentences_today, ", + }); } }