Fix Tab Size

approved

by Michael Naumov

Fixes tab size according to the settings. - This plugin has not been manually reviewed by Obsidian staff.

6 stars1,283 downloadsUpdated 11d agoMIT

Fix Tab Size

Buy Me a Coffee GitHub release GitHub downloads Coverage: 100%

This is a plugin for Obsidian that fixes tab size according to the settings.

As reported on the forum:

Obsidian has setting for tab size:

Tab size

But Obsidian partially ignores this setting and always inserts 4 spaces when you press Tab button in the editor, if you have setting Indent using tabs disabled.

This plugin fixes the editor tab size making it to match Indent visual width setting.

Demo vault

A demo vault with usage examples ships with every release. You can access it via any of the following:

  1. Running the Fix Tab Size: Open demo vault command.
  2. Downloading fix-tab-size.demo-vault.zip from the Releases.
  3. Browsing its source in demo-vault/ in this repository.

Installation

The plugin is available in the official Community Plugins repository.

Beta versions

To install the latest beta release of this plugin (regardless if it is available in the official Community Plugins repository or not), follow these steps:

  1. Ensure you have the BRAT plugin installed and enabled.
  2. Click Install via BRAT.
  3. An Obsidian pop-up window should appear. In the window, click the Add plugin button once and wait a few seconds for the plugin to install.

Debugging

By default, debug messages for this plugin are hidden.

To show them, run the following command in the DevTools Console:

window.DEBUG.enable('fix-tab-size');

For more details, refer to the documentation.

Support

Buy Me A Coffee

My other Obsidian resources

See my other Obsidian resources.

License

© Michael Naumov

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.