scoavoux / PandocTools

Sublime Text 3 package for pandoc markdown academic writing.
2 stars 0 forks source link

Sublist completion #18

Closed XachaB closed 9 years ago

XachaB commented 9 years ago

When typing "\t" after a list bullet, the list bullet should move after the tab (or spaces) to create a sub-list. Sub-lists should be autocompleted too.

XachaB commented 9 years ago

Sublist are now autocompleted, but the tab thing isn't resolved yet.

XachaB commented 9 years ago

Now ("|" as caret):

* |<tab>

transforms to :

<tab>* |

This works for all lists matching : ^( *)([+*-]|\\d+[.)]|#\\.) ?

scoavoux commented 9 years ago

Nested lists do not autocomplete

    + text|<enter>

produces :

    + text
    |

instead of

    + text
    + |
XachaB commented 9 years ago

This was an issue for users indenting with tabs, the regex was changed from ( ) at the beginning to (\s), and the functionality is now operational for both tabs and spaces.