Multi-Line YAML indentation in Raw Config Editor

Simple Request: When using the Raw Config Editor in the Lovelace UI (which is the most convenient method for me to create horizontal- and vertical-stacks), no matter what text is selected, pressing the Tab key will add two spaces to the start of the line(s).

  • If no text is selected, or only text on a single line is selected) the line where the cursor (or selection) currently resides gets intended. If pressing Shift-Tab, the line is de-indented by two spaces.
  • If multiple lines are selected, all of these lines have two spaces added.
  • If multiple lines are selected and Shift-Tab is pressed, two spaces are removed from each line UNLESS one of the lines does not have two spaces to remove from the start. If that is the case, nothing should happen. This differs from normal text editor multi-line indent functions, but since we’re dealing with YAML and some users my be less experienced, it might be wise to prevent “squashing” your indents up against the start of the line and then having to figure it all out again to fix it.