README file from
GithubFix Tab Size
Obsidian has an Indent visual width setting, and then ignores it whenever
you indent with spaces: turn Indent using tabs off, set the width to 2 or 8, and pressing Tab
still inserts exactly four spaces. The setting is honoured for real tab characters and hardcoded
for spaces.
This plugin makes one indent insert the number of spaces you actually set, so the indentation you get is the indentation you chose. If you indent with tabs, Obsidian already draws them at your configured width and this plugin has nothing to do.
Reported on the forum.
Demo vault
The documentation is a demo vault. The feature has a note that explains what it does and why you
would want it, with buttons that set both editor settings for you so you can press Tab and count the
spaces.
Start reading here — it is plain markdown, so it works on GitHub with nothing installed.
A copy of the vault ships with every release. You can access it via any of the following:
- Running the Fix Tab Size: Open demo vault command.
- Downloading
fix-tab-size-demo-vault-<version>.zip(<version>is the release version) from the Releases. - Browsing its source in
demo-vault/in this repository.
What it does
- A space indent is as wide as you configured, matching
Indent visual widthinstead of Obsidian's hardcoded four. Applies whileIndent using tabsis off; there is nothing to configure in the plugin itself. 01 Fix tab size
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:
- Ensure you have the BRAT plugin installed and enabled.
- Click Install via BRAT.
- An Obsidian pop-up window should appear. In the window, click the
Add pluginbutton 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:
window.DEBUG.enable('fix-tab-size');
For more details, refer to the documentation.
Changelog
All notable changes to this project will be documented in the CHANGELOG.
Contributing
Contributions are welcome — see CONTRIBUTING to get set up.
Support
My other Obsidian resources
See my other Obsidian resources.