[Bug] Nesting a numbered list item by pressing tab doesn't work with "Tab size" 4 without "Use tabs"

Steps to reproduce

  1. Press “help” to open the help vault with all the default settings.
  2. In settings → Editor, set “Tab size” to 2 and “Use tabs” to off.
  3. Create a numbered list. Try to make it a nested numbered list by pressing Tab on some items.
  4. 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.