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

Custom Selected Word Count

John BanisterJohn Banister955 downloads

Provides advanced word counting features for selected text across all view modes. Goes beyond basic word counting with customizable path exclusion, and more.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates18

A plugin for Obsidian that provides comprehensive text analysis for selected text across all view modes and Canvas cards. Features advanced word counting, character counting, and sentence counting with customizable path exclusion, modern UI design, and detailed history tracking.

Plugin in Action

See the Custom Selected Word Count plugin in active use, demonstrating how it provides real-time feedback in your editor.

Animated demonstration of selecting text in Obsidian with an arrow pointing to the live word count update in the status bar

Selecting text automatically displays the word count in the status bar, with live updates as you adjust your selection.

Settings Overview

This animated overview showcases the various configuration options available within the Custom Selected Word Count plugin.

Animated overview of the Custom Selected Word Count plugin's configuration settings across five different screenshots

Explore the comprehensive settings, from basic display options to advanced exclusion rules.


Key Features

  • Comprehensive Text Analysis: Advanced word, character (with configurable modes), and sentence counting with sophisticated detection across all view modes and Canvas cards.
  • Modern User Interface: Card-based modal design, individual copy buttons, multi-metric history tracking, command palette, and optional status bar/ribbon integration.
  • Granular Exclusion Rules: Fine-tune counting by excluding code, paths, comments, headings, specific words/phrases, and support for per-note overrides.
  • Customization & Extensibility: Define custom word detection via regex for expert users and enjoy flexible, persistent settings.
  • Accurate Link Processing: Ensures only visible text in Markdown links is counted.

Installation

  1. Open Obsidian Settings
  2. Go to Community Plugins and disable Safe Mode
  3. Click Browse and search for "Custom Selected Word Count"
  4. Install the plugin
  5. Enable the plugin in your list of installed plugins

Usage

  1. Select text in any view mode or Canvas card
  2. Access the text analysis:
    • Use the command palette and search for "Count Selected Words"
    • Click the ribbon button (if enabled)
    • Click the status bar count (if enabled)
    • View the real time word count in the status bar (if enabled)
  3. View comprehensive analysis in the modal:
    • Word count with advanced detection
    • Character count (if enabled in settings)
    • Sentence count (if enabled in settings)
    • Copy individual metrics to clipboard
    • View historical analysis data

Detailed Configuration & Screenshots

For a comprehensive look at all of the plugin's settings and how they are presented, refer to the screenshots below:

Screenshot Description
Screenshot of the Custom Selected Word Count plugin's settings interface, displaying Status bar and Modal configuration options Status bar: Show count in status bar, Enable live updates, Hide core wordcount, Status bar label
Modal: Show character count, Character counting mode, show sentence count, Show date/time in history
Screenshot of plugin settings for excluding code, code blocks, inline code, and various file path types Code: Exclude code, Exclude code blocks, Exclude inline code
Paths:
Exclude paths from word count, Exclude Windows paths, Exclude Unix paths, Exclude UNC paths, Exclude environment paths
Screenshot of plugin settings for excluding Obsidian and HTML comments, and various heading options Comments: Exclude Obsidian comments, Exclude Obsidian comment content, Exclude HTML comments, Exclude HTML comment content
Headings: Exclude heading markers only, Exclude entire heading lines, Exclude heading sections
Screenshot of plugin settings for excluding specific words and phrases, logging levels, and the start of custom word detection regex Words and phrases: Exclude words, Exclude phrases
Logging: Enable debug logging, Logging level (not shown)
Custom word detection regex
Screenshot of plugin settings continuing the custom word detection regex configuration Custom word detection regex (continued)

Per-Note Exclusion Overrides

You can override global exclusion settings for individual notes using two methods:

YAML Frontmatter Override

Add a cswc-disable property to your note's frontmatter:

---
cswc-disable: [exclude-urls, exclude-comments]
---

Or disable all exclusions:

---
cswc-disable: all
---

Inline Comment Override

Use special comments to disable exclusions for specific sections:

This text follows global exclusion rules.

<!-- cswc-disable -->
This section ignores all exclusions - URLs, paths, and comments are counted.
<!-- cswc-enable -->

Back to normal exclusion rules.

You can also use Obsidian comment syntax: %% cswc-disable %% and %% cswc-enable %%.


Support My Work

If you find this plugin useful, please consider supporting its development!

Documentation

For comprehensive documentation, visit the Documentation Hub which includes:

  • Getting Started Guide - Detailed usage instructions and examples
  • Settings Reference - Complete settings documentation
  • Word Counting Principles - How the plugin counts words

Exclusion Logic Details (Click to expand)

The settings page now includes a detailed "Exclusion Logic Details" section. For each exclusion type (Windows Paths, UNC Paths, Unix Paths, Environment Variable Paths, File Extension Exclusion, file:/// Protocol), you will see:

  • The regex pattern used
  • A plain-English explanation
  • Example matches and non-matches
  • A "Copy Regex" button for advanced users
  • All details are in a collapsible section for clarity

This makes it easy to understand what is being excluded and why.


Getting Support

If you encounter any issues or have a feature request, please create a GitHub issue.

Mobile Compatibility

This plugin is primarily developed and tested for Obsidian Desktop. While it may work on Obsidian Mobile, mobile support is currently untested. Some features—such as the ribbon button and status bar integration—are not available on mobile. If you use this plugin on mobile and encounter any issues or have suggestions, please report them on GitHub. Your feedback is appreciated and will help improve mobile compatibility in future updates.

License

MIT License

94%
HealthExcellent
ReviewSatisfactory
About
Analyze selections across editors and Canvas. Show live word, character (multiple modes) and sentence counts with exclusion rules, regex-based detection, link-aware counting, history, and optional status-bar or ribbon UI.
MarkdownWriting
Details
Current version
1.7.2
Last updated
Last week
Created
Last year
Updates
18 releases
Downloads
955
Compatible with
Obsidian 0.15.0+
Platforms
Desktop only
License
MIT
Report bugRequest featureReport plugin
Sponsor
Buy Me a Coffee
GitHub Sponsors
Author
John BanisterJohn Banisterbanisterious
github.com/banisterious
GitHubbanisterious
  1. Community
  2. Plugins
  3. Markdown
  4. Custom Selected Word Count

Related plugins

Importer

Import data from Notion, Evernote, Apple Notes, Microsoft OneNote, Google Keep, Bear, Roam, and HTML files.

Outliner

Work with your lists like in Workflowy or Roam Research.

Various Complements

Complete words similar to auto-completion in an IDE.

Longform

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

Linter

Format and style your notes. Linter can be used to format YAML tags, aliases, arrays, and metadata; footnotes; headings; spacing; math blocks; regular Markdown contents like list, italics, and bold styles; and more with the use of custom rule options.

Text Generator

Generate text content using GPT-3 (OpenAI).

Smart Composer

AI chat with note context, smart writing assistance, and one-click edits for your vault.

LanguageTool Integration

advanced spell/grammar checks with the help of language-tool.

Fantasy Statblocks

Create, manage and view a Fantasy Bestiary with Dungeons and Dragons style statblocks.

Custom Frames

Turn web apps into panes using iframes with custom styling. Also comes with presets for Google Keep, Todoist and more.