Fletcher on 12 Oct, 2017 02:46 PM
I'm not sure of the best thing to do here.
The inconsistent behavior did bother me. Some people do use headers inside lists (I'm not sure why, but that's a separate issue). Can also have comments that start with #, and it's important to be able to indent them in relation to code blocks.
I'm thinking that maybe a different shortcut might be useful here (and could be used in other situations where appropriate). This would allow indent/outdent to remain consistent (whether called by menu, Cmd-right, or Cmd-]).
I see what you mean about there being cases where people do want to indent what would otherwise be a header (or even use a header in a list, as you said).
Given that, and wanting to maintain consistency, I agree that different/new keyboard shortcuts would be a good solution.
I was playing around looking for some options. I think that something with [ and ] or arrows would be good because it would be easier to remember (and have a logical increase and decrease pair). It's tricky, though, because both have lots of keyboard shortcuts already. Still, it looked like Option+Cmd+left/right arrow didn't seem to do anything, at least in my testing. Would that be an option?
The only other context where I thought that the shortcut could be used was may with subscript/superscript to increase/decrease the height of the highlighted text, but I can imagine that there could be difficult edge cases regarding how to interpret the indent or modify the highlighted text. Though maybe not. Also, the semantics would be different, as I can only imagine it making sense if it worked on selected text, whereas the header shortcut just requires that the cursor be on the appropriate line.