https://github.com/mlava/word-count
https://github.com/mlava/word-count
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/mlava/word-count
- Owner: mlava
- Created: 2022-08-03T10:31:46.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-11-22T00:37:56.000Z (7 months ago)
- Last Synced: 2025-11-22T02:30:55.874Z (7 months ago)
- Language: CSS
- Size: 47.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This extension allows you to calculate the word count for any page or block selection.
**New:**
- Smarter Selection Detection
Word Count now automatically detects the correct “mode” based on how you selected text or blocks:
- Text highlighting inside a single block → counts only the highlighted text
- Checkbox multiselect → counts across all selected blocks
- Drag multiselect (blue highlight) → fully supported and counted
- Context menu → “Word Count (selected blocks)” → counts exactly what you’ve selected
- Command palette hotkey → intelligently decides based on real selection state
*Previously*:
- added support for multiselect contect menu (right-click, Plugins, Word Count (selected blocks))
- added support for Chinese, Japanese and Korean ideographs. Thanks [@aka-phrankie](https://github.com/aka-phrankie)
- now compatible with the new user-defined hotkeys function - see Hotkeys option in Roam Research Settings
Trigger via the Command Palette and a toast with the word count will be created. Or, right-click on a block bullet and select Plugins > Word Count (selected block(s) only).

To get the word count for a selected area of text, use the Roam Research multi-block select (CTRL-m) and then select the blocks to include. Then trigger this extension using any keyboard shortcut you configure via Settings > Hotkeys, or via the block bullet context menu or the Command Palette.