Currently, when tab is pressed the whole line is indented.
Indenting does not seem too useful unless you write a lot of code blocks. Many users do not.
This doesn’t seem like the expected behaviour (c.f. all of the forum posts linked below!)
Have an option to either turn off tabbing entirely, or revert to how tabs worked pre-Live Preview.
Current workaround (optional)
Workarounds include using the Legacy Editor (but then there are other problems such as the vimrc plugin not working - although of course that’s a community plugin, so not in the scope of a feature request)
While this would fix the impossibility of inserting tab characters, it would still break AHK scripts. One could of course switch the behaviour around, so that, e.g. Ctrl+Tab indents.
I assume there are two different groups of users, expecting two different behaviours for the tab key, which is why I proposed a switch in the settings.
My workaround for this in MacOS was to use BTT (Better Touch Tool) to replace the TAB key with four spaces when I press it inside Obsidian (BTT is a great tool that I use in my daily workflow and I already had the license for it).
Open the BTT Configuration
Add Obsidian App by clicking in the plus sign that is in the bottom left corner
Select ‘Keyboard Shortcuts’ from the top dropdown
Click on the plus sign at the bottom of the ‘Groups and Top Level Triggers’ section and set the TAB key to this trigger by selecting ‘Keyboard Shortcuts’ in the trigger configuration (right side)
Click on the plus sign at the ‘Actions Assigned to Selected Trigger’ section and select ‘Insert/Type/Paste custom Text’ as the action
Write the four blank spaces in the ‘Insert/Type/Paste custom Text’ action configuration and save
Obsidian is a plain text editor that uses Markdown. Basic Markdown does not include
tabs. It is not a word processor. Obsidian is extensible, so maybe someone can write a plug in or CSS snippet to do tabs, like they have done for tables. Remember this is still essentially beta software.
For vim users, we already have ctrl+D and ctrl-T to change indentation. So yeah we don’t need Tab to change indentation. At the very least, we could have ctrl-V Tab insert a tab just like in vim. I wonder if CodeMirror could be tweaked to enable that.
In the meantime, BTT sounds like an OK workaround (although it may conflict with plugins that use TAB to navigate in or reformat markdown tables)