You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Selected and total word counts use different rules. In rich-text mode, selecting all of # Hello world shows 2 of 3 words: the selection counts rendered text, but the total includes Markdown syntax. In source mode, selecting all of ---\ntitle: Example\n---\nHello world counts the YAML too, showing 6 of 2 words. Please use consistent counting rules for the selected text and the total, including how frontmatter is handled.
Switching to source mode can leave a stale selection count. Select text in a plain-text note, then switch to source mode. CodeMirror starts with an empty selection, but its callback only runs after a selection or document change, so the previous rich-text selection count can remain visible. Please report the initial selection on mount or reset the count when switching modes.
Validation: typecheck and all 37 frontend tests pass. I reproduced the count discrepancies programmatically; the mode-switch issue was traced through the code, not tested in the UI.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Displays real-time word count for highlighted/selected text in the status bar.
Details
X of Y words(e.g.14 of 350 words).Y wordscount.bunx tsc --noEmitpasses cleanly and all 59 Rust tests incargo testpass.