1
0

Add character count to stats

This commit is contained in:
Zef Hemel 2023-02-11 14:19:02 +01:00
parent 5ed30eca74
commit df958749d1

View File

@ -16,6 +16,6 @@ export async function statsCommand() {
const wordCount = countWords(text); const wordCount = countWords(text);
const time = readingTime(wordCount); const time = readingTime(wordCount);
await editor.flashNotification( await editor.flashNotification(
`${wordCount} words; ${time} minutes read; ${allPages.length} total pages in space.`, `${text.length} characters; ${wordCount} words; ${time} minutes read; ${allPages.length} total pages in space.`,
); );
} }