fix syntax

This commit is contained in:
Luke Leppan 2021-07-08 22:54:59 +02:00
parent f1440baa4d
commit f9e3f467a1
2 changed files with 29 additions and 15 deletions

View file

@ -97,22 +97,36 @@ export class BetterWordCountSettingsTab extends PluginSettingTab {
});
});
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:
"Syntax for the status bars works like this: \n" +
"- To get a stat input the name of the stat in between `{}` eg. `{word_count}`.\n" +
"- All other words remain.\n\n" +
"Available Stats:\n" +
"- word_count\n" +
"- character_count\n" +
"- sentence_count\n" +
"- total_word_count\n" +
"- total_character_count\n" +
"- total_sentence_count\n" +
"- file_count\n" +
"- words_today\n" +
"- characters_today\n" +
"- sentences_today\n",
"word_count, " +
"character_count, " +
"sentence_count, " +
"total_word_count, " +
"total_character_count, " +
"total_sentence_count, " +
"file_count, " +
"words_today, " +
"characters_today, " +
"sentences_today, ",
});
}
}

View file

@ -43,7 +43,7 @@ export function parse(query: string): Expression {
break;
default:
parsed.push("{" + s + "}");
parsed.push(s);
break;
}
});