MarkdownEditing
MarkdownEditing copied to clipboard
Handling wordwrapping in lists
I believe the most proper and consistent styling of lists is like below (if you prefer wrapping your document):
In this case, wrap_lines
(Alt Q) command should handle this style of wrapping. Currently, when I run wrap_lines
on the below list item:
I get this:
It would be greate to get this instead:
For this, wrap_lines
commands should be overwritten:
- If pressed when the cursor is on a list, apply the suggested wrapping style. Only that list item shoud be wrapped. Below or above items sohuldn't be touched, even if there is no empty line in between.
- If pressed on other places, apply the standard wrapping style.
Dear @ttscoff and @felixhao28, what do you think about this?
Honestly I rarely use wrap_lines
command so it is your call, but from your description I think splitting to several lines in one list item makes more sense than splitting to several list items.
Wait, what is this wrap_lines
command? I am so confused right now. @maliayas
It's the regular line wrapping command for long lines. You can find it in the default key bindings file as:
{ "keys": ["alt+q"], "command": "wrap_lines" },
Why I am not seeing it in keymap?
It's not our addition, but Sublime Text's native fature. So you can find it in ST's native default keymap file.
What I proposed in this issue was simply improving that default wrapping style according to markdown conventions.
Regards,
Ali Ayas
2018-02-09 06:22 tarihinde Felix Hao yazdı:
Why I am not seeing it in keymap https://github.com/SublimeText-Markdown/MarkdownEditing/blob/master/Default%20%28Windows%29.sublime-keymap?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SublimeText-Markdown/MarkdownEditing/issues/301#issuecomment-364324059, or mute the thread https://github.com/notifications/unsubscribe-auth/AAzg6FV-iV6OzU4_hUjn1vF-yARWhNu0ks5tS7nxgaJpZM4F0vMq.