nsf / godit

A very religious text editor
MIT License
578 stars 76 forks source link

M-q should combine lines, not just split them #13

Closed tv42 closed 10 years ago

tv42 commented 10 years ago

godit RET foo RET bar RET M-q RET RET

Expected to see "foo bar" See two lines, "foo" and "bar"

E.g. https://github.com/kr/text has the necessary logic.

nsf commented 10 years ago

It does, my M-q works only on selected blocks of code (from the line where the mark is to the line where the cursor is). So:

godit RET foo RET bar RET C-p C-p C-SPACE C-n M-q RET RET

tv42 commented 10 years ago

You're right. And I even knew that godit M-q needs a region. I guess that show's you how deeply ingrained my assumption of M-q reformatting the current paragraph is. Sorry.