Closed hbschr closed 5 years ago
Thanks for the PR. Looks good.
Could you have a look whether it's reasonable to add some tests for this feature? The code that adds the new list items is currently implemented as an anonymous function in the activate method, and I intend to refactor this at some point. The tests would help a lot in preventing regressions, and for catching edge cases.
and here are the tests. have fun :-)
Kudos for you! Will have a look soon
in lists with more than one whitespace between list marker "add new list items" will inconveniently create list items with only one space. example, where
_
marks cursor position after creating new item:this pr adds whitespaces in new item like so:
this may also fix #238