adds class SmartNewLineCommand #5

Merged
merged 2 commits into from Mar 31, 2013

Projects

None yet

2 participants

@vovkkk
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
0c68735
@alehandrof
Owner

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)
afc96cd
@vovkkk
vovkkk commented Mar 27, 2013

@alehandrof please try that new commit

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

Fold content on the same line as the heading #12

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

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