Improve UX of adding new task list in editor
Description
I very often use task lists in issues/merge requests.
But sometimes it's not so useful to use as it would be.
If I click to Add a task list
button in the editor, the * [ ]
code will always be put into the next new line.
Proposal
Improve the logic of adding a new task list:
- If the cursor is on an empty line, clicking to the button should put
* [ ]
at the beginning of the current empty line. - If the cursor is on not empty line, clicking to the button should add an empty line next to the current one and put
* [ ]
at the beginning of that new line.
So, the main goal of this proposal is, if you added some task list, then made some changes to a part of text (say, add bold there) and then you'd like to add another task list, you will just click to the Add a task list
button and editor will do the things right (you won't have to create a new line by yourself and then click to the button).
/cc @awhildy @tauriedavis