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!)
Proposed solution
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)
In the new editor (Version 0.13.14), it is not possible to insert tab characters with the Tabkey inside lists and LaTeX blocks.
Currently, the Tab key only modifies indentation.
This is also breaks functionality for some AutoHotkey scripts, which used to work fine before the update.
Proposed solution
Add a toggle switch in the settings, which allows to switch between two modes:
Insert tab characters, when the Tab key is pressed in the editor (as before Version 0.13.14)
Modify indentation, when the Tab key is pressed in the editor (as since Version 0.13.14)
Current workaround
One can use the old editor. However, then one then cannot make use of the real time preview, which is especially important for editing LaTeX equations.
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.
The problem was use tabs option doesn’t work. I use iCloud to store the vault. in the iPadOS 15.1 the tab behavior will move all the line from the start even when toggle off.
In macos catalina , same vault, the tab button will create space only even toggle on.
It’s really annoying. Anyone know the problem? I did remove and reinstall the app. Didn’t work. Remove .obsidian config folder. Didn’t work too.
Thank you rigmarole for the reply. I think I did misunderstand the use of “turn off tabs” options.
My problem is:
I want tabs button to create tab character. However, in my Ipad, the tab button work like a shift-tab. It move all the line from the start. And it also changes the line into red color.
I had thought there is a hot key defined with the tab button but it doesn’t.
I have just update to newest version macOS and it happened to macOS too.
I use safe mode so no community plugins are installed
I think I see what you mean now! Can you let me know if I understand you correctly?
You want to insert spaces (or tab character) where your cursor is positioned. But no matter where your cursor is positioned, it indents the entire line.
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)