Fix Tab Size

unlisted

by nnyj

Fixes list indentation to respect the tab size setting.

Updated 17d ago
View on GitHub

obsidian-fix-tab-size

Stars Downloads Latest Release Build

Fixes Obsidian's list indentation to respect the tab size setting. Obsidian hardcodes 4-space indentation for lists regardless of your configured tab size.

Install

Download main.js, manifest.json from Releases into .obsidian/plugins/fix-tab-size/.

How it works

Obsidian injects a CodeMirror extension with a hardcoded value of 4 spaces for list indentation. The plugin monkey-patches getDynamicExtensions on the markdown edit-view prototype to replace that value with your configured tabSize when useTab is off.

The patch applies once on first layout-change after a markdown leaf is open, then calls updateOptions() on all open markdown views.

[!NOTE] Targets a 3-level-deep prototype chain in Obsidian internals, may break on Obsidian updates.

Build

npm install
npm run build

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.