MugishoMp / obsidian-editor-width-slider

With this plugin you can set the line width of the editor in obsidian.
MIT License
45 stars 4 forks source link

Obsidian Line Width Slider Plugin

A plugin for Obsidian that allows you to adjust the editor line width using a simple slider in the status bar.

Features

Feature: Custom for Individual Files using YAML

With the Obsidian Line Width Slider Plugin, you can now customize the editor width for individual files by specifying an "editor-width" field in the YAML frontmatter of your notes. This feature allows you to have different line widths for different files, giving you greater flexibility in your note-taking and editing experience.

Setting the Editor Width

To set a custom editor width for a specific file, follow these steps:

  1. Open the note for which you want to customize the editor width.

  2. In the YAML frontmatter section at the top of the note, add an "editor-width" field. The value of this field should be a number between 0 and 100, representing the desired editor width as a percentage of the viewport width. For example:

    ---
    title: My Customized Note
    editor-width: 75
    ---

Demo

Demo GIF

Here is a brief demo showcasing the basic functionality of the Line Width Slider plugin.

Installation

  1. Download the latest release of the plugin from the Releases page.
  2. Extract the plugin folder from the downloaded ZIP file.
  3. Copy the plugin folder into your Obsidian vault's .obsidian/plugins directory.
  4. Launch Obsidian and open the settings.
  5. Navigate to the "Community Plugins" tab and enable the "Line Width Slider" plugin.
  6. Enjoy using the Line Width Slider in the status bar to adjust the editor line width.

Usage

  1. Once the plugin is enabled, you will see a slider in the status bar.
  2. Drag the slider to the left or right to increase or decrease the editor line width.
  3. The changes will be applied to the editor in real-time.

Feedback and Support

If you encounter any issues or have suggestions for improvements, please create a new issue on the GitHub repository.

Support Me

If you find my work valuable or simply want to support this broke CS student's caffeine-fueled coding adventures, you can make a donation through PayPal. Your contribution is greatly appreciated and helps keep the coffee flowing! ☕️🖥️

Donate

License

This plugin is licensed under the MIT License. See the LICENSE file for more information.

Please note that this plugin is provided as-is without any warranty. Use it at your own risk.