Steps to reproduce
- Press “help” to open the help vault with all the default settings.
- In settings → Editor, set “Tab size” to 2 and “Use tabs” to off.
- Create a numbered list. Try to make it a nested numbered list by pressing Tab on some items.
- Turn on preview mode. Notice that the list isn’t nested.
Expected result
Tab should move an item to the next level.
Actual result
Instead, tab indents an item by 2 spaces, when 3 spaces are needed.
Environment
- Operating system: Debian 10
- Obsidian version: 0.12.3
Additional information
Screencast
This is not a bug but how markdown works.
The number of spaces matters.
Notice 2 things:
- “Smart indent lists: automatically set indentation and place list items correctly” is turned on.
- When the cursor is in the middle (in contrast to the beginning) of a line of a list item, pressing tab adds indentation.
Given these two observations, I was very surprised that pressing tab indents by 2 spaces rather than by whatever amount is needed to reach the next indentation level. Moreover, I want it to indent by whatever amount is needed to reach the next indentation level.
1 Like
I understand. Open a feature request.