nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: line folding


From: rexy712
Subject: Re: line folding
Date: Thu, 17 Oct 2024 11:20:19 +0000

> Does each function get folded separately?

Yes, they're kept separate currently. I find this behavior more desirable. I specifically don't fold the lines containing the open and close brackets, just the content in between. This way function signatures are still visible. If we're operating on paragraphs of text instead of code, then I believe folding them into a single folded segment would make more sense.

Perhaps having it operate on paragraphs would be more common for most users, since code editing is more often done in vim or other such editors. But I personally find the code folding more useful. When I have wanted to fold paragraphs, selecting the lines manually and hitting M-[ has never been a problem for me.
-------- Original Message --------
On Oct 17, 2024, 02:00, Benno Schulenberg < bensberg@telfort.nl> wrote:

Op 12-10-2024 om 20:38 schreef rexy712: > This way you can do a repeated invocation of M-[ and,for example, fold > multiple C-style functions back to back. Does each function get folded separately? Or do you put successive invocations of M-[ into a single fold? The latter way would match better how ^K works and would allow to fold several paragraphs of text without having to select those paragraphs first. Benno
reply via email to

[Prev in Thread] Current Thread [Next in Thread]