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
460
downloads
0
forks
246
days
226
days
226
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.
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.
PodNotes
4 years ago by Christian B. B. Houmann
PodNotes is a plugin for Obsidian that helps the user write notes on podcasts.
Code Preview
3 years ago by Hank
Obsidian code block render by file path
Writing
3 years ago by johackim
Write and format your next book directly from Obsidian
ProZen
3 years ago by Moskvitin
Obsidian plugin for going FULL screen
Focus Active Sentence
3 years ago by artisticat
Highlight the active sentence in Obsidian.md
Codeblock Customizer
3 years ago by mugiwara
Codeblock Customizer plugin for Obsidian
Readability Score
3 years ago by zuchka
score the readability of your Obsidian documents using the Flesch Reading Ease (FRE) formula
Code Styler
3 years ago by Mayuran Visakan
A plugin for Obsidian.md for styling codeblocks and inline code
Fantasy name generator
3 years ago by Lukewh
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】
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.
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.
digital paper
3 years ago by Daniel Fernandes
turn off backspace and undo, like writing with a pen on real paper.
Fountain Editor
3 years ago by Chuang Caleb
Obsidian plugin for Fountain screenplay syntax formatting.
Keyword Highlighter
2 years ago by Marcel Goldammer
Automatically highlight specified keywords within your Obsidian notes for enhanced visibility and quick reference.
Storyclock Viewer
2 years ago by Jonathan Fisher
Obsidian plugin for creating a storyclock
PDF++
2 years ago by Ryota Ushio
PDF++: the most Obsidian-native PDF annotation & viewing tool ever. Comes with optional Vim keybindings.
Yesterday
2 years ago by Dominik Mayer
Obsidian plugin providing Yesterday journaling support
Hemingway Mode
2 years ago by Joaquín Bernal
Reverse Prompter
2 years ago by Ryan Halliday
Let AI generate prompts to keep you writing
Canvas2Document
2 years ago by slnsys
Plugin for Obsidian to convert a complete Canvas to a long form document
GDScript Syntax Highlighting
2 years ago by RobTheFiveNine
Adds live GDScript syntax highlighting to code blocks in the Obsidian editor.
Dialogue Mode
2 years ago by Patrick Chiang
Autocomplete
5 years ago by Yeboster
Obsidian plugin to provide text autocomplete
Orthography
5 years ago by denisoed
The Obsidian plugin for checking grammar and correcting spelling errors in text.
Daily Stats
5 years ago by Dhruvik Parikh
Plugin to view your daily word count across all notes in your Obsidian.md vault.
Longform
5 years ago by Kevin Barrett
A plugin for Obsidian that helps you write and edit novels, screenplays, and other long projects.
Annotator
5 years ago by Elias Sundqvist
A plugin for reading and annotating PDFs and EPUBs in obsidian.
Stille
5 years ago by Michael Lee
🌗 Stille — An Obsidian plugin that helps you focus on your writing, a section at a time.
Word Sprint
4 years ago by Andrew Lombardi
Obsidian Word Sprint plugin
Highlightr
4 years ago by Chetachi
A minimal and aesthetically pleasing highlighting menu that makes color-coded highlighting much easier 🎨.
Dialogue
4 years ago by Jakub Holub
Dialogue plugin for Obsidian.md
Occura
2 years ago by Alexey Sedoykin
Plugin for https://obsidian.md/ that automatically selected same text occurrences in opened note
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.
Brain Dump Mode
a year ago by yesjinu
Obsidian plugin - DISABLE your delete key and eliminate hesitation!
Typezen
a year ago by Ilgam Gabdullin
Plugin for obsidian which lets you turn zen mode instantly
Gemini Scribe
a year ago by Allen Hutchison
An obsidian plugin to interact with Google Gemini
Note Annotations
a year ago by Jan Beck
Keep the Rhythm
a year ago by Ezben
An Obsidian plugin to track your daily word count through a heatmap.
AI Revisionist
a year ago by Synaptic Labs
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 💪
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.
Blog AI Generator
a year ago by Gareth Ng
Obsidian Plugin: generate blog via AI based on the current note.
Write Good
a year ago by Mark Hesketh
Obsidian plugin to help improve writing style
Musical Text
a year ago by Tynan Purdy
Encourage writing with rhythm by highlighting sentences according to wordcount.
WordCraft
a year ago by Daniel Fernandes
Find rhymes, synonyms, and describing words from within Obsidian. Designed for songwriting and poetry.
WeWrite
a year ago by Learner Chen
Obsidian plugin to render note as WeChat MP article.
Inscribe
a year ago by Ahmet Ildirim
Obsidian plugin for inline autocompletion with AI
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.
Sentence Rhythm
a year ago by Adam Fletcher
Obsidian plugin added toggleable colored highlights to sentences based on their length
Cut The Fluff
a year ago by Adam Fletcher
Obsidian plugin to avoid unnecessary complexity and clutter in your writing
Always Color Text
8 months ago by Kazi Aidah Haque
Automatically colors texts across the Obsidian Vault!
HiWords
7 months ago by Kai
Effortlessly grow your vocabulary as you read, with automatic highlighting and translation of unfamiliar words.
Typographer
6 months ago by René Coignard
Enhances typography with smart quotes, custom text replacements and auto-pairing characters.
My Typewriter Line
6 months ago by dmo-code
Dangerous Mode
5 months ago by Vansh Kumar
most dangerous writing app in obsidian
Japanese Manuscript Counter
4 months ago by Yo Fujii
Nova
3 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.
WPM Reading Time - How Long to Read This Text
a month ago by Santi Younger
Calculate reading time estimates for selected text using your own reading speed in Words Per Minute.