Merge branch 'release/0.7.0' into develop

This commit is contained in:
Luke Leppan 2021-07-08 22:58:00 +02:00
commit bef425e8ec
3 changed files with 34 additions and 2 deletions

View file

@ -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",

View file

@ -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": {

View file

@ -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, ",
});
}
}