Martino Wong105 downloadsShows stats (wordcount, reading time) beside headings and in the status bar
Section Meter is an Obsidian plugin that shows useful writing statistics beside your note title and headings.
See the word count, character count, and estimated reading time for each section without leaving the editor. You can also add writing targets and follow your progress as you write.
Created by Martino Wong with Codex.
Each heading gets a small badge showing statistics for the section beneath it.
A section continues until the next heading of the same or a higher level. This means a parent heading includes everything inside its smaller subheadings.
For example:
# Chapter one
Introduction...
## First scene
Scene text...
## Second scene
More text...
The badge beside Chapter one counts the introduction and both scenes. Each scene heading counts only its own section.
# to ######Section Meter focuses on readable prose. It leaves out frontmatter, code blocks, inline code, embeds, comments, and HTML when calculating statistics.
Add a Target: line to set a writing goal.
Place it before the first heading to create a target for the whole note:
Target: 1200 words
# My draft
Start writing here...
Place it inside a section to create a target for that heading:
# Introduction
Target: 250 words
Introduction text...
## Background
Target: 1800 characters
Background text...
You can create targets using:
Target: 250 wordsTarget: 1800 charactersTarget: 3 min, Target: 3m, or Target: 2m 30sTarget lines are not included in your statistics.
A target on a parent heading covers its complete section, including smaller subheadings. It remains visible in the status bar while you work inside those subheadings. If a smaller section has its own target, that target takes priority while you are inside it.
Progress bars change colour as you approach your target. They turn green when the target is reached and red when you pass the configured overage warning.
Section Meter's settings let you choose:
Section Meter currently works in the editor, not Reading view.
Counts are calculated using fast Markdown cleanup rather than Obsidian's complete renderer. Content generated by plugins such as Dataview, rendered transclusions, and complex mathematics may therefore produce slightly different results from what appears on screen.
Download or build the plugin, then copy these files into .obsidian/plugins/section-meter inside your vault:
main.jsmanifest.jsonstyles.cssRestart Obsidian—or reload your installed plugins—then enable Section Meter under Community plugins.
Install the dependencies:
npm install
Run the tests:
npm test
Build the plugin:
npm run build
For local testing, copy or symlink this repository into your vault's .obsidian/plugins/section-meter directory. Build the plugin, then enable it in Obsidian.
Section Meter is available under the MIT License.
It is an independent community plugin and is not affiliated with, endorsed by, or sponsored by Obsidian.