An Obsidian plugin that lets you toggle any note between readable line length and full viewport width with a single click.
- Enable "Readable line length" in Obsidian Settings → Editor
- Open any note
- Toggle full width using one of:
- Command palette: Search for "Toggle full width"
- Status bar: Click the width indicator in the bottom-right corner
- Hotkey: Assign a custom hotkey in Settings → Hotkeys
The plugin adds full-width to the note's cssclasses frontmatter property. This means:
- The setting persists across sessions
- It works even if you disable the plugin (as long as you keep the CSS)
- You can also add
full-widthmanually to any note's frontmatter
The plugin ships a CSS rule that sets --file-line-width: 100% on notes with the full-width class. When you toggle, it adds or removes this class from the note's frontmatter.
- Obsidian v1.4.0 or later
- "Readable line length" must be enabled (Settings → Editor)
- Open Settings → Community plugins → Browse
- Search for "Toggle Full Width"
- Click Install, then Enable
- Download
main.js,manifest.json, andstyles.cssfrom the latest release - Create a folder
.obsidian/plugins/toggle-full-width/in your vault - Copy the three files into that folder
- Enable the plugin in Settings → Community plugins
pnpm install
pnpm run dev # watch mode
pnpm run build # production build
pnpm run lint # check with biome
pnpm run lint:fix # auto-fixTo test locally, symlink the project folder into your vault:
ln -s /path/to/obsidian-toggle-full-width /path/to/vault/.obsidian/plugins/toggle-full-width