fix syntax
This commit is contained in:
parent
f1440baa4d
commit
f9e3f467a1
2 changed files with 29 additions and 15 deletions
|
@ -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", {
|
this.containerEl.createEl("p", {
|
||||||
text:
|
text:
|
||||||
"Syntax for the status bars works like this: \n" +
|
"word_count, " +
|
||||||
"- To get a stat input the name of the stat in between `{}` eg. `{word_count}`.\n" +
|
"character_count, " +
|
||||||
"- All other words remain.\n\n" +
|
"sentence_count, " +
|
||||||
"Available Stats:\n" +
|
"total_word_count, " +
|
||||||
"- word_count\n" +
|
"total_character_count, " +
|
||||||
"- character_count\n" +
|
"total_sentence_count, " +
|
||||||
"- sentence_count\n" +
|
"file_count, " +
|
||||||
"- total_word_count\n" +
|
"words_today, " +
|
||||||
"- total_character_count\n" +
|
"characters_today, " +
|
||||||
"- total_sentence_count\n" +
|
"sentences_today, ",
|
||||||
"- file_count\n" +
|
|
||||||
"- words_today\n" +
|
|
||||||
"- characters_today\n" +
|
|
||||||
"- sentences_today\n",
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,7 @@ export function parse(query: string): Expression {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
parsed.push("{" + s + "}");
|
parsed.push(s);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue