Use case or problem
Use case is working with any lists within a document. It should be an editor main feature to be able to move items in a list up and down using the keyboard.
An example of this feature can be found in Emac’s org-mode (I’m sorry if everyone is tired about org-mode being brought up)
In org-mode, you can hold shift and press up and down to move list items (as lines) up and down in the list. Further, if it is a numbered or lettered list, the numbers/letters will automatically update as the selected line moves up.
Proposed solution
Add a hotkey-able command to move lines up and down a list, that will change the number or letter appropriately while shifting the line
Current workaround (optional)
Rewriting line numbers manually (cringe)
Related feature requests (optional)
Wider suite of recognized list starters
There is Move line up
and Move line down
commands which you can bind to ⌥↑ and ⌥↓. You could retitle the post to include these commands. Normally you don’t want to preserve the list marker number when using these commands. When using reading mode, the list marker numbers are updated automatically.
You could also turn off “Smart indent lists” in Settings–>Editor–>Behavior and then use 1.
as list marker. I personally use smart indent lists off because I like that enter makes an empty line after lists. I then use reading mode to render numbered lists correctly.
The feature wouldn’t update every numbered lists automatically—only trigger list marker update in live preview if Move line up/down
is used inside the numbered list. I think that would make a lot of sense compared to automatically modifying arbitrary markdown files to update numbered lists.
I was also thinking maybe live preview would auto render numbered lists correctly similar to reading mode. This would make possible to input 1.
but that would instantly turn into proper number in live preview. Source mode could then be used to preserve the original input text. In live preview preserving the numbered list markers is not very useful by itself.