Long sentence highlighter

by Robert Meißner
5
4
3
2
1
Score: 51/100

Description

The Long Sentence Highlighter plugin helps writers maintain clarity by automatically marking sentences that exceed a chosen word limit. You can set your own threshold, and the plugin highlights overly long sentences in real time while you type, working in both editing and reading modes. Two styles are available - background shading or underlining - with customizable colors, so the highlights can fit neatly into your workflow without being distracting. Commands in the palette allow you to toggle highlighting, apply it manually, or clear it from the current note. Since it updates dynamically, you can immediately see when a sentence grows too long, making it easier to refine text into shorter, more readable forms.

Reviews

No reviews yet.

Stats

0
stars
503
downloads
0
forks
279
days
259
days
259
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
1
total issues
0
open issues
1
closed issues
9
commits

README file from

Github

Long Sentence Highlighter

CI Release License: MIT Version Downloads

An Obsidian plugin that helps improve writing clarity by highlighting sentences that exceed a configurable word count threshold.

Mainly used by me to have brief sentences in my novel.

Features

  • Automatic highlighting of long sentences in both editing and reading modes
  • Configurable word threshold - set your preferred maximum sentence length
  • Two highlighting styles:
    • Background highlighting with customizable color
    • Underline highlighting with customizable color
  • Toggle functionality - easily enable/disable highlighting
  • Real-time updates - highlights update as you type and navigate between notes

Installation

From Obsidian Community Plugins

  1. Open Obsidian Settings
  2. Go to Community Plugins and disable Safe Mode
  3. Click Browse and search for "Long Sentence Highlighter"
  4. Install and enable the plugin

Manual Installation

  1. Download the latest release from the releases page
  2. Extract the files to your vault's .obsidian/plugins/long-sentence-highlighter/ directory
  3. Reload Obsidian and enable the plugin in Settings > Community Plugins

Usage

Commands

The plugin provides several commands accessible via the Command Palette (Ctrl/Cmd + P):

  • Toggle long sentence highlighting - Enable/disable highlighting
  • Highlight long sentences in current note - Manually trigger highlighting
  • Clear sentence highlights - Remove all highlights from current note

Settings

Access plugin settings via Settings > Community Plugins > Long Sentence Highlighter:

  • Word threshold (default: 20) - Sentences with this many words or more will be highlighted
  • Highlight style - Choose between background highlighting or underline
  • Highlight color - Customize the color used for highlighting
  • Enable highlighting - Toggle automatic highlighting on/off

How It Works

The plugin analyzes text content and identifies sentences that exceed your configured word threshold. It uses CodeMirror 6's decoration system for reliable highlighting that does not interfere with editing.

Sentence detection: The plugin splits text using common sentence delimiters (periods, exclamation marks, question marks) while handling paragraph breaks appropriately.

Word counting: Words are counted by splitting on whitespace and filtering out empty strings.

Writing Tips

Long sentences can make text harder to read and understand. This plugin helps you identify sentences that might benefit from being split or simplified. Consider:

  • Breaking long sentences into shorter, clearer statements
  • Using bullet points or lists for complex information
  • Removing unnecessary words or phrases
  • Ensuring each sentence conveys one main idea

Compatibility

  • Minimum Obsidian version: 0.15.0.
    • Probably works for older versions, too, but have not tested it.
  • Platforms: Desktop only. Mobile not tested
  • OS: Linux only. Windows, macOS, … not tested
  • Modes: Works in both editing and reading modes

Development

Building the Plugin

# Install dependencies
npm install

# Development build with watch mode
npm run dev

# Production build
npm run build

Project Structure

  • main.ts - Main plugin code with highlighting logic
  • manifest.json - Plugin metadata
  • styles.css - Additional CSS styles (if needed)

Contributing

Contributions are welcome! Please read our Contributing Guide for details on our development process, coding standards, and how to submit pull requests.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

If you find this plugin helpful, consider:

  • Starring the repository
  • Reporting issues or suggesting improvements
  • Contributing to the codebase

Changelog

See CHANGELOG.md for detailed release notes and version history.

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
AI Revisionist
a year ago by Synaptic Labs
Always Color Text
9 months ago by Kazi Aidah Haque
Automatically colors texts across the Obsidian Vault!
Annotator
5 years ago by Elias Sundqvist
A plugin for reading and annotating PDFs and EPUBs in obsidian.
Autocomplete
5 years ago by Yeboster
Obsidian plugin to provide text autocomplete
Blog AI Generator
a year ago by Gareth Ng
Obsidian Plugin: generate blog via AI based on the current note.
Brain Dump Mode
2 years ago by yesjinu
Obsidian plugin - DISABLE your delete key and eliminate hesitation!
Canvas2Document
2 years ago by slnsys
Plugin for Obsidian to convert a complete Canvas to a long form document
Code Preview
4 years ago by Hank
Obsidian code block render by file path
Code Styler
3 years ago by Mayuran Visakan
A plugin for Obsidian.md for styling codeblocks and inline code
Codeblock Customizer
3 years ago by mugiwara
Codeblock Customizer plugin for Obsidian
Cut The Fluff
a year ago by Adam Fletcher
Obsidian plugin to avoid unnecessary complexity and clutter in your writing
Daily Stats
5 years ago by Dhruvik Parikh
Plugin to view your daily word count across all notes in your Obsidian.md vault.
Dangerous Mode
6 months ago by Vansh Kumar
most dangerous writing app in obsidian
Dialogue
5 years ago by Jakub Holub
Dialogue plugin for Obsidian.md
Dialogue Mode
2 years ago by Patrick Chiang
digital paper
3 years ago by Daniel Fernandes
turn off backspace and undo, like writing with a pen on real paper.
Extended Markdown Syntax
a year ago by Kotaindah55
Extend your Markdown syntax using delimiters instead of HTML tags, such as underlining, superscript, subscript, highlighting, and spoiler.
Fantasy name generator
3 years ago by Lukewh
Focus Active Sentence
3 years ago by artisticat
Highlight the active sentence in Obsidian.md
GDScript Syntax Highlighting
2 years ago by RobTheFiveNine
Adds live GDScript syntax highlighting to code blocks in the Obsidian editor.
Gemini Scribe
2 years ago by Allen Hutchison
An obsidian plugin to interact with Google Gemini
Hemingway Mode
2 years ago by Joaquín Bernal
Highlightr
5 years ago by Chetachi
A minimal and aesthetically pleasing highlighting menu that makes color-coded highlighting much easier 🎨.
Inscribe
a year ago by Ahmet Ildirim
Obsidian plugin for inline autocompletion with AI
Japanese Manuscript Counter
5 months ago by Yo Fujii
Keep the Rhythm
a year ago by Ezben
An Obsidian plugin to track your daily word count through a heatmap.
Keyword Highlighter
3 years ago by Marcel Goldammer
Automatically highlight specified keywords within your Obsidian notes for enhanced visibility and quick reference.
Longform
5 years ago by Kevin Barrett
A plugin for Obsidian that helps you write and edit novels, screenplays, and other long projects.
Musical Text
a year ago by Tynan Purdy
Encourage writing with rhythm by highlighting sentences according to wordcount.
My Typewriter Line
7 months ago by dmo-code
Nova
4 months ago by Shawn Duggan
Nova - AI plugin for Obsidian that edits your documents directly through natural conversation. Stop copying from chat, start collaborating with AI.
Novel Word Count
4 years ago by Isaac Lyman
Obsidian plugin. Displays a word count or other statistic for each file, folder and vault in the File Explorer pane.
Orthography
5 years ago by denisoed
The Obsidian plugin for checking grammar and correcting spelling errors in text.
PodNotes
4 years ago by Christian B. B. Houmann
PodNotes is a plugin for Obsidian that helps the user write notes on podcasts.
Proofreader
a year ago by pseudometa (aka Chris Grieser)
AI-based proofreading and stylistic improvements for your writing. Changes are inserted as suggestions directly in the editor, similar to suggested changes in word processing apps.
ProZen
3 years ago by Moskvitin
Obsidian plugin for going FULL screen
Readability Score
3 years ago by zuchka
score the readability of your Obsidian documents using the Flesch Reading Ease (FRE) formula
Reverse Prompter
2 years ago by Ryan Halliday
Let AI generate prompts to keep you writing
Sentence Rhythm
a year ago by Adam Fletcher
Obsidian plugin added toggleable colored highlights to sentences based on their length
Smart Composer
2 years ago by Heesu Suh
AI chat assistant for Obsidian with contextual awareness, smart writing assistance, and one-click edits. Features vault-aware conversations, semantic search, and local model support.
Stille
5 years ago by Michael Lee
🌗 Stille — An Obsidian plugin that helps you focus on your writing, a section at a time.
Storyclock Viewer
2 years ago by Jonathan Fisher
Obsidian plugin for creating a storyclock
Typewriter Mode
3 years ago by Davis Riedel
Typewriter Mode is a plugin that adds typewriter scrolling (current line stays at a fixed position on the screen), a highlight for the current line, dimming of unfocused paragraphs and more to Obsidian.
Typezen
2 years ago by Ilgam Gabdullin
Plugin for obsidian which lets you turn zen mode instantly
Typing Assistant
3 years ago by Jambo
Typing Assistant is a plugin that improves writing efficiency and provides a user experience similar to that of【Notion】
Typographer
7 months ago by René Coignard
Enhances typography with smart quotes, custom text replacements and auto-pairing characters.
WeWrite
a year ago by Learner Chen
Obsidian plugin to render note as WeChat MP article.
Word Sprint
5 years ago by Andrew Lombardi
Obsidian Word Sprint plugin
WordCraft
a year ago by Daniel Fernandes
Find rhymes, synonyms, and describing words from within Obsidian. Designed for songwriting and poetry.
WPM Reading Time - How Long to Read This Text
2 months ago by Santi Younger
Calculate reading time estimates for selected text using your own reading speed in Words Per Minute.
Write Good
a year ago by Mark Hesketh
Obsidian plugin to help improve writing style
Writing
3 years ago by johackim
Write and format your next book directly from Obsidian
Writing Goals
3 years ago by James Lynch
Set yourself dynamic writing goals for notes and folders to help you hit your long form writing targets with Obsidian.
Yesterday
2 years ago by Dominik Mayer
Obsidian plugin providing Yesterday journaling support
YourPulse - Your Writing Activity Visualised
a year ago by Jiri Sifalda
YourPulse.cc - Obsidian.md plugin that turns your vault into a reflection of your creativity, and put your writing on steroids 💪