adds class SmartNewLineCommand #5

merged 2 commits into from Mar 31, 2013


None yet

2 participants

vovkkk commented Mar 26, 2013

fix issue when folded headline is last one in file

@vovkkk vovkkk adds class SmartNewLineCommand
fix issue when folded headline is last one  in file

This needs some more testing. Issues I spotted:

  • It jumps to eof on the case where the fold mark is on its own line due to word wrap.
  • There was also some weird behaviour with multiple cursors.
@vovkkk vovkkk fixes class SmartNewLineCommand
now it should work always (end of file, wrapped header, multi selection)
vovkkk commented Mar 27, 2013

@alehandrof please try that new commit

@vovkkk vovkkk referenced this pull request in demon386/SmartMarkdown Mar 27, 2013

Fold content on the same line as the heading #12

@alehandrof alehandrof merged commit 6a1263e into alehandrof:nicer-folding Mar 31, 2013

Sorry for taking so long to merge. I wanted to have a look at the code but it's beyond my current understanding of python/the sublime api/smartmarkdown's internals. It seems to work robustly, so cool :)

(Although I've been having second thoughts about the behaviour of Ctrl+Enter, but that's another story.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment