Fix Tab Size

by mnaoumov
5
4
3
2
1
Score: 52/100

Description

The Fix Tab Size plugin corrects a gap in the editor where pressing Tab can still insert four spaces even when your configured visual indent width says otherwise. It steps in when tabs are disabled and makes the inserted spacing follow the vault's indent width setting, so typing behaves the way the editor settings suggest it should. This makes indentation more consistent in notes that rely on spaces instead of hard tabs, especially when you care about layout in lists, code blocks, or structured text. The plugin stays focused on that one job.

Reviews

No reviews yet.

Stats

7
stars
1,474
downloads
1
forks
98
days
2
days
4
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
114
commits

Latest Version

5 days ago

Changelog

  • docs: make the demo vault the documentation, in the standard layout

Full Changelog: https://github.com/mnaoumov/obsidian-fix-tab-size/compare/1.2.17...1.2.18

README file from

Github

Fix Tab Size

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

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:

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

What it does

  • A space indent is as wide as you configured, matching Indent visual width instead of Obsidian's hardcoded four. Applies while Indent using tabs is 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:

  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:

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.

License

© Michael Naumov

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Style Settings
5 years ago by mgmeyers
A dynamic user interface for adjusting theme, plugin, and snippet CSS variables within Obsidian
Hover Editor
4 years ago by NothingIsLost
Transform the Page Preview hover into a working editor instance
Settings Search
5 years ago by Jeremy Valentine
Adds a search bar to Obsidian.md's settings
Vimrc Support
6 years ago by esm
A plugin for the Obsidian.md note-taking software
Hotkey Helper
5 years ago by PJ Eby
Easily see and access any Obsidian plugin's options pane or hotkey assignments (including conflicts) from the Community Plugins tab
Tab Switcher
24 days ago by Vinzent
Tab Switcher - Obsidian Plugin
Lean Terminal
2 months ago by Sascha D. Kasper
Embedded terminal for Obsidian powered by xterm.js and node-pty
New Tab Default Page
4 years ago by pseudometa
Obsidian plugin to open a note of your choice when creating a new tab, like in the browser.
Markdown Tabs
a month ago by xhuajin
Create and render a Tabs component in your notes.
Heading Level Indent
3 years ago by svonjoi
obsidian plugin for hierarchical structuration of document content based on heading levels
Mononote
3 years ago by Carlo Zottmann
An Obsidian plugin that ensures each note occupies only one tab. If a note is already open, its existing tab will be focussed instead of opening the same file in the current tab.
Sync Embeds
3 months ago by uthvah
Transform static embeds into live synced blocks in Obsidian.
Settings profiles
3 years ago by 4Source
This is a plugin for Obsidian (https://obsidian.md). Allows you to create various global settings profiles. You can sync them between different vaults. To keep all your settings in sync, you'll never have to manually adjust them again for every vault you have or create in the future.
Sync Graph Settings
4 years ago by Xallt
This is a plugin for syncing graph settings (Color Groups and Search Filters) to Local Graphs
Restore Tab Key
4 years ago by jerrymk
An Obsidian plugin to make the tab key insert a tab, and make it feel like any other IDE regarding tabs and indentation.
Tab Selector
2 years ago by namikaze-40p
This is an Obsidian plugin which can quickly switch tabs in various ways.
HTML Tabs
3 years ago by Patrick Tournet
Obsidian plugin allowing the creation and rendering of Tabs and tab panels in your notes.
CodeBlock Tabs
3 years ago by Jemin Mau
Create tab group for contiguous codeblocks.
Autofit Tabs
a year ago by Bradley Wyatt
Obsidian Plugin that automatically adjusts tab header widths in real-time to perfectly fit each tab's title content while maintaining a clean, seamless interface that prevents awkward text truncation and ensures optimal readability of your document titles.
Scrolling
a year ago by omeyenburg
Obsidian plugin to keep your cursor centered, disable code wrapping, remember position in a file, and more.
Simple Tab Indent
a year ago by Thiago Frias
Settings Management
2 years ago by Huajin
Manage settings options, including show enabled/disabled plugins and css, grid layout, save current plugins/css enable config for quick enable/disable, etc.
External Link Opener
4 years ago by zorazrr
Obsidian plugin to open external links in modals or tabs
Disable Tabs
7 months ago by David V. Kimball
Disables having more than one tab open at a time Obsidian.
Minitabs
3 years ago by ssjy1919
Obsidian tabs
Shrink pinned tabs
2 years ago by Nicolas Lœuillet
Obsidian plugin to shrink pinned tabs in order to save screen space
Mobile Sidebar Notes
9 days ago by ckep1
Open notes & new tabs in the sidebar on the Obsidian mobile app.
Tab Shifter
2 years ago by Joshua Rozner
Emoji Picker
a year ago by Ali Faraji
An up-to-date Emoji Picker for obisian.md, using emoji-mart.
Smooth Navigator
a year ago by Michael Schrauzer
Smoothly cycle through open files and splits in Obsidian via the keyboard.
Tree Diagram
a year ago by limpido
An Obsidian plugin that converts tab-indented text to a tree diagram.
Community Install Manager
10 days ago by Konstantin Volobuev
Allows you to use `community-plugins.js` to search for and automatically install plugins when you launch `obsidian`.
Tab Group Arrangement
a year ago by situ2001
Arrange the tab groups of Obsidian in a more flexible way
Format Automatically with Prettier
a year ago by Dylan Armstrong
Format with Prettier using built-in settings for Obsidian
Tab Limiter
2 years ago by Henry Gustafson
Limits the number of tabs that can be opened in Obsidian
Tab File Path
a year ago by John Burnett
Auto Math
5 months ago by Vladislav Sorokin
Auto-expand LaTeX math snippets in Obsidian — write equations faster.
Tabsdown
17 days ago by grafanakibana
Create accessible, theme-native tabbed blocks for Markdown-renderable content in Obsidian.
Path in tab title
3 months ago by d9k
Pinned Tabs
10 days ago by NameIsKyro
Chrome-style compact pinned tabs for Obsidian with custom icons, smooth movement, and accidental-close protection.`