MarkdownEditing icon indicating copy to clipboard operation
MarkdownEditing copied to clipboard

Handling wordwrapping in lists

Open maliayas opened this issue 8 years ago • 5 comments

I believe the most proper and consistent styling of lists is like below (if you prefer wrapping your document):

ekran goruntusu 2015 08 31 01_07_29

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:

ekran goruntusu 2015 08 31 01_10_11

I get this:

ekran goruntusu 2015 08 31 01_10_30

It would be greate to get this instead:

ekran goruntusu 2015 08 31 01_10_41

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?

maliayas avatar Aug 30 '15 22:08 maliayas

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.

felixhao28 avatar Sep 06 '15 00:09 felixhao28

Wait, what is this wrap_lines command? I am so confused right now. @maliayas

felixhao28 avatar Feb 05 '18 08:02 felixhao28

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" },

maliayas avatar Feb 08 '18 21:02 maliayas

Why I am not seeing it in keymap?

felixhao28 avatar Feb 09 '18 03:02 felixhao28

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.

maliayas avatar Feb 10 '18 14:02 maliayas