cy29 downloadsPer-heading (H1–H6) word count outline for Chinese and English writing. Counts CJK characters one-by-one and English by words, with configurable punctuation and a bilingual interface.
Heading Word Count shows a per-section word count for every H1–H6 heading in a dedicated outline panel. It counts Chinese (CJK) characters one by one and English by words, and lets you configure how punctuation is counted. It is built for people who write in Chinese, English, or a mix of both, and want to see how long each section of a note is at a glance.
don't and well-known each count as one word).| Content | How it is counted |
|---|---|
| Chinese / Japanese / Korean characters | 1 each |
| Chinese punctuation (,。、「」!?…) | not counted by default; optionally 1 each |
| English / Latin words | by word; contractions and hyphenated words count as one |
| Numbers | a run of digits counts as one word |
| Code blocks / inline code | excluded by default (configurable) |
| YAML frontmatter | always excluded |
| Links / images | only display text is counted; URLs and images are not |
| The heading text itself | not counted toward its section (only the content below the heading) |
Copy main.js, manifest.json, and styles.css into your vault's
<vault>/.obsidian/plugins/heading-word-count/ folder, restart Obsidian, then enable the plugin under Settings → Community plugins.
npm install
npm run dev # watch mode
npm run build # type-check + produce main.js
MIT © 2026 Cem Yang
Heading Word Count 會在一個獨立的側邊面板中,依 H1–H6 標題逐節顯示字數。中文逐字計算、英文依詞計算,並且可以自訂計算規則。
功能
使用方式:啟用後點左側功能區的清單圖示,或用命令面板執行「開啟字數大綱面板」,面板會出現在右側。到「設定 → Heading Word Count」調整規則。