Trim Whitespace
by Zack Lovatt
Score: 54/100
favorite
share
Description
Category: Productivity Tools

The Trim Whitespace plugin enhances the editing experience in Obsidian by removing unnecessary blank spaces, tabs, and lines from documents. It operates on trailing, leading, and multiple whitespace types, offering cleaner and more organized content. Users can trim specific sections or entire documents, with settings that allow customization, such as preserving code blocks or indented lists. The plugin includes commands for manual and selection-based trimming, as well as options for auto-trimming after modifications with a configurable delay. A ribbon button is also provided for quick access.

Stats
40
stars
8,881
downloads
4
forks
935
days
560
days
560
days
7
total PRs
0
open PRs
0
closed PRs
7
merged PRs
19
total issues
5
open issues
14
closed issues
0
commits
Latest Version
2 years ago
Changelog

Added

  • Jest test suite (thanks @velebit!)
  • Setting to preserve leading characters if part of an indented list
  • Setting to control whether CTRL/CMD + S trims document

Changed

  • Auto-Trim to skip currently-active text block (#5)
  • Trimming via CTRL/CMD + S no longer requires Auto-Trim to be enabled (#12)
  • "Skip Code Blocks" setting name to "Preserve Code Blocks"
  • Improved detection of code blocks

Fixed

  • Trimming of indented lists (#9)
  • Plugin not loading on iOS (thanks @velebit!) (#14)
  • Typo in settings (#16)
  • Issue trimming code blocks containing template literals (#17)
README file from