Re: line folding
Seb <[email protected]>
| Newsgroups | gmane.editors.nano.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Benno, > However, before trying an implementation, I would have liked to see a > discussion of how this "code folding"/"line folding" should work. > Personally I've never used such folding, but I can imagine that it could > be useful to some people. But... how exactly should it work in nano? > Since the request was made [1], I've reserved the M-[ keystroke for line > folding. But what should that keystroke do in which situations? Here is a suggestion: * I select some lines of text with Shift+Arrow key. * I then press M-[ to visually replace the selected (complete) lines by a single line which may for instance look something like ====> (folded lines 237 to 274) <==== * To unfold the lines, I place the cursor on the line above and press M-[. (As an aside: why doesn't Shift+PageUp/Down select lines too (Nano 7.2)?) Sébastien.