Javier Mey107 downloadsA Google Docs style ruler above your notes. Drag the margin markers to set the line width, per note or for all notes.
A Google Docs style ruler above your notes. Drag the margin markers to set how wide your text is.
Obsidian's Readable line length is all or nothing: a narrow 700 px column, or the whole pane. Width Ruler lets you choose anything in between, visually, and works with any theme.
900, 900px, 24cm, 9in, 90ch or full.Width Ruler isn't in the Community plugins directory yet. Until it is, install it in one of these ways.
javimey/obsidian-width-ruler and confirm.BRAT also keeps the plugin up to date.
main.js, manifest.json and styles.css from the
latest release..obsidian/plugins/width-ruler/ and put the three files in it.
(.obsidian is hidden: on macOS press Cmd+Shift+. in Finder to show it; on Windows turn on
View → Show → Hidden items in File Explorer.)By default, dragging the ruler sets the width for all notes. To give one note its own width, right-click the ruler and choose Keep this width for this note only. Or set the property yourself:
---
note-width: 900px
---
The value can be any width the plugin accepts: 900px, 24cm, 9in, 90ch or full. While a note has its own
width, dragging the ruler changes that note only. To go back to the default, right-click the ruler and choose
Use the default width for this note.
If you'd rather have every drag set a per-note width, change Dragging the ruler changes in settings.
Until you set a width, your theme's own width is used and the ruler just shows it.
| Command | What it does |
|---|---|
| Toggle ruler | Show or hide the ruler |
| Set note width… | Type a width or pick a preset |
| Make text wider / narrower | Change the width by 50 px |
| Use the default width for this note | Remove the note's own width |
| Set width: preset | One command per preset |
All of them can have hotkeys in Settings → Hotkeys.
note-width).name: width. Changes to the list take effect in the command palette after
restarting Obsidian.The plugin sets Obsidian's own --file-line-width CSS variable on each pane, so themes and other plugins that
respect that variable keep working. It doesn't need a CSS snippet or a particular theme.
npm install
npm run dev # rebuild main.js on every change
npm run build # type-check and build for release
npm run lint # the same checks Obsidian's community directory runs
Bump version in manifest.json and package.json, add it to versions.json, commit, then push a tag with
the same version (no v prefix):
git tag 0.1.3 && git push origin main 0.1.3
GitHub Actions builds the plugin from source, signs main.js, manifest.json and styles.css with an artifact
attestation, and publishes the release. Verify a download with
gh attestation verify main.js --repo javimey/obsidian-width-ruler.
Copy main.js, manifest.json and styles.css into .obsidian/plugins/width-ruler/ in a test vault to try
your changes. npm run deploy:mac does this for one particular setup over SSH; edit scripts/deploy-mac.sh for
yours.
MIT © Javier Mey