Dynamically adjust your editor's text width via a status bar input or per-note YAML settings for a personalized writing space. This extension was inspired by the Editor Width Slider extension, but I have added additional features and changed how it renders the page so there is no more delay when switching between notes.
- Adjust editor width through a status bar control (choose between slider or input box)
- Set default width for all notes
- Override width per note using YAML frontmatter
- Real-time width updates
- Values from 0-100 (corresponds to adding 0-1000px to the base width)
- Open Obsidian Settings
- Navigate to Community Plugins and disable Safe Mode
- Click Browse and search for "Dynamic Editor Width"
- Install the plugin
- Enable the plugin in your Community Plugins list
The plugin adds a control to your status bar (can be toggled in settings):
- Use the slider or input box to adjust width
- Values range from 0-100
- Changes apply immediately
To set a specific width for individual notes, add this to your note's YAML frontmatter:
---
editor-width: 30
---In the plugin settings, you can:
- Set the default editor width
- Toggle the status bar control visibility
- Choose between slider or input box control style
Here is what a note would look like without any changes to the width
And this is what a note would look like, changing the value to 30
If you encounter any issues or have suggestions:
- Create an issue on GitHub
- Support the development:
Want to contribute or modify the plugin? Here's how to get started with the source code:
-
Create a directory for your GitHub projects:
cd path/to/somewhere mkdir Github cd Github
-
Clone the repository:
git clone https://github.com/bwya77/dynamic-editor-width.git
-
Navigate to the plugin directory:
cd dynamic-editor-width -
Install dependencies:
npm install
-
Start development build mode:
npm run dev
This command will keep running in the terminal and automatically rebuild the plugin whenever you make changes to the source code.
-
You'll see a
main.jsfile appear in the plugin directory - this is the compiled version of your plugin.
To test your modifications:
- Create a symbolic link or copy your plugin folder to your vault's
.obsidian/plugins/directory - Enable the plugin in Obsidian's community plugins settings
- Use the developer console (Ctrl+Shift+I) to check for errors and debug
- Fork the repository
- Create a new branch for your feature
- Make your changes
- Submit a pull request with a clear description of your changes






