zyedidia / micro

A modern and intuitive terminal-based text editor
https://micro-editor.github.io
MIT License
24.9k stars 1.17k forks source link

Adding selection for ParagraphPrevious and ParagraphNext. #3353

Closed hchac closed 2 months ago

hchac commented 3 months ago

Also tweaked the behavior of Paragraph/{Previous/Next} so that it skips all empty lines immediately next to cursor position, until it finds the start/end of the paragraph closest to it. Once it finds the paragraph closest to it, the same behavior as before applies. With the previous behavior if the cursor was surrounded by empty lines, then Paragraph/{Previous/Next} would only jump to the next empty line, instead of jumping to the start/end of a paragraph.

hchac commented 2 months ago

@Neko-Box-Coder done, thanks

hchac commented 2 months ago

Would you folks prefer I squash into one commit, or the 4 independent are fine?

dmaluka commented 2 months ago

Ideally, squash. It's generally better to keep separate commits for separate logical changes, and squash them otherwise. In other words, organize commits in such a way that the commit history is easier to review, not harder.

hchac commented 2 months ago

@dmaluka done