(statusItems = [...statusItems, Object.create(BLANK_SB_ITEM)])} >
Add Item
{ statusItems = [{ prefix: "", suffix: " words", count: Counter.fileWords, }, { prefix: " ", suffix: " characters", count: Counter.fileChars, }, ]; await update(statusItems); }} >
Reset
{#each statusItems as item, i}
{counterToString(item.count)}
{#if i !== 0}
{ statusItems = swapStatusBarItems(i, i-1, statusItems); await update(statusItems); }} > ↑
{/if} {#if i !== statusItems.length - 1}
{ statusItems = swapStatusBarItems(i, i+1, statusItems); await update(statusItems); }} > ↓
{/if}
{ statusItems = statusItems.filter((item, j) => i !== j); await update(statusItems); }} > X
Count Type
This is the type of counter that will be displayed.
{ const {value} = e.target; item.count = Counter[Counter[value]]; await update(statusItems); await plugin.saveSettings(); }} >
Select Option
{counterToString(Counter.fileWords)}
{counterToString(Counter.totalWords)}
{counterToString(Counter.fileChars)}
{counterToString(Counter.totalChars)}
{counterToString(Counter.fileSentences)}
{counterToString(Counter.totalSentences)}
{counterToString(Counter.totalNotes)}
Prefix Text
This is the text that is placed before the count.
{ const { value } = e.target; item.prefix = value; await update(statusItems); await plugin.saveSettings(); }} />
Suffix Text
This is the text that is placed after the count.
{ const { value } = e.target; item.suffix = value; await update(statusItems); await plugin.saveSettings(); }} />
{/each}