Skip to content

Conversation

@swordmasterliam
Copy link
Contributor

Just in the most basic way possible made it so the status bar could display the number of words in the file.

added word count to the status bar
@TotallyNotK0
Copy link
Member

Your proposed change copies the entire document and splits it into words every single time the cursor moves. That is extraordinarily computationally expensive especially on larger files. The word count should only update when the text changes (and ideally be throttled), not every time the cursor moves.

I'll leave the PR open, but please make the necessary changes, and let me know when that is done then I'll review it again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants