Info
When Use tabs is toggled off under Settings --> Editor, a certain number of spaces (I’m assuming 2, but it does not say) should be inserted when Tab is pressed instead of a tab character as stated; however, that is not the case. Tab characters are still inserted when Tab is pressed.
Steps to reproduce
- Set
Settings --> Editor --> Use tabs to off
- Go to any note and press the
Tab key on your keyboard
Expected result
2 spaces should be inserted into the note.
Actual result
1 tab character is inserted into the note.
Environment
- Operating system: Windows 10 Pro for Workstations
- Obsidian version: v0.8.1 (Although I believe this has been a bug in previous versions)
Additional information
I also noticed that if I opened up a new line via Enter or o in Vim mode, it would insert spaces no matter if the previous line was indented with spaces or tabs. If I set Use tabs to on though, and the previous line was a list item indented with spaces, then it inserts spaces still, but if the previous line was indented with spaces and not a list item, it inserts a tab character. So, this settings’ behavior seems to be fairly unpredictable when it comes to indentation as well as pressing the Tab key.
I didn’t see a setting for it, but it would also be useful to configure the number of spaces that the Use tabs setting would insert when set to off.