Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Heading Word Count

cycy29 downloads

Per-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.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates4

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.

Features

  • Per-heading counts — every H1–H6 heading shows the word count of the text under it, arranged as an outline tree.
  • Chinese and English aware — each Chinese/Japanese/Korean character counts as one word; English and other Latin text is counted by words (don't and well-known each count as one word).
  • Configurable rules:
    • Counting scope: include sub-sections (an H1 includes everything beneath it) or count only the section's own text.
    • Whether Chinese punctuation is counted (off by default).
    • Whether to exclude fenced code blocks and inline code.
    • How many heading levels to display (H1–H6).
    • Whether to show a whole-note total.
  • Collapsible outline — one toolbar button cycles collapse-all / expand-all, and each section can be folded individually.
  • Per-file auto-scroll — mark a note with the ↓ button so it always opens scrolled to the end; handy for continuing a long draft. Only marked notes behave this way.
  • Click to jump — click a heading in the panel to jump to it in the note.
  • Live updates — counts update as you type.

Counting rules

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)

Usage

  1. After enabling the plugin, click the list icon in the left ribbon, or run the command "Open the word-count outline panel" from the command palette.
  2. The panel opens on the right. Open any Markdown note to see its headings and word counts.
  3. Adjust the counting rules in Settings → Heading Word Count.

Manual installation

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.

Development

npm install
npm run dev     # watch mode
npm run build   # type-check + produce main.js

License

MIT © 2026 Cem Yang


中文說明

Heading Word Count 會在一個獨立的側邊面板中,依 H1–H6 標題逐節顯示字數。中文逐字計算、英文依詞計算,並且可以自訂計算規則。

功能

  • 每個 H1–H6 標題後面顯示該標題底下的字數,排成大綱樹狀。
  • 中文(含日文、韓文)方塊字逐字計算;英文/西文依單字計算。
  • 可自訂:計算範圍(含子章節/只算本節)、中文標點是否計入(預設不計)、是否排除程式碼、顯示到第幾層、是否顯示全文總字數。
  • 大綱可收合:頂端一顆按鈕循環「全部收合/全部展開」,每段也能單獨收合。
  • 逐檔案自動捲到底:用 ↓ 按鈕標記某篇筆記,之後打開它就自動捲到最底、游標停在文末,方便接著寫長稿(只有被標記的檔案會這樣)。
  • 點面板上的標題可直接跳到筆記對應位置;邊打字邊即時更新。

使用方式:啟用後點左側功能區的清單圖示,或用命令面板執行「開啟字數大綱面板」,面板會出現在右側。到「設定 → Heading Word Count」調整規則。

HealthExcellent
ReviewSatisfactory
About
Adds a dedicated outline panel that shows a word count after every H1–H6 heading. Chinese, Japanese and Korean characters are counted one-by-one and English/Western text by words, so mixed-language notes are measured correctly. You can choose whether the count includes sub-sections, whether Chinese punctuation is counted, and whether code blocks are excluded. The outline is collapsible — one button toggles collapse/expand all, and each section can be folded on its own — you can click a heading to jump to it, and counts update as you type. A per-file option can auto-scroll a note to the bottom when it opens. The interface is available in English and Chinese, following Obsidian's language or a manual setting.
WritingOutliningSidebar
Details
Current version
1.1.2
Last updated
4 days ago
Created
6 days ago
Updates
4 releases
Downloads
29
Compatible with
Obsidian 1.7.2+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
cycywindar92
GitHubwindar92
  1. Community
  2. Plugins
  3. Writing
  4. Heading Word Count

Related plugins

Longform

Helps you write and edit novels, screenplays, and other long projects.

Novel word count

Display a word count, page count, creation date, or other statistics for each file, folder and vault in the File Explorer pane.

Notebook Navigator

A better file browser and calendar inspired by Apple Notes, Bear, Evernote and Day One.

LanguageTool Integration

Advanced grammar and spell checking, powered by LanguageTool.

Tag Wrangler

Rename, merge, toggle, and search tags from the tag pane.

ChatGPT MD

A seamless integration of ChatGPT, OpenRouter.ai and local LLMs via Ollama into your notes.

Vertical Tabs

Offer an alternative view that displays open tabs vertically, allowing users to group and organize tabs for a better navigation experience.

Recent Files

Display a list of recently opened files.

Outliner

Work with your lists like in Workflowy or Roam Research.

Text Generator

Generate text content using GPT-3 (OpenAI).