Re: line folding

Benno Schulenberg <[email protected]>
Newsgroups gmane.editors.nano.devel
Message-ID <[email protected]>
>> But what should M-[ do by default, when 
>> nothing is selected and the cursor is on a normal line?
> 
> Perhaps the same thing as Alt+PageUp/Down does for anchors?
> 
> If nothing is selected...
> 
> * ...and no group of lines has been folded, display the message...
>      [ There are no folded lines; to fold lines, first select them ]

Hmm.  I don't like the idea of having to select something first,
but... maybe that is the best way because the most versatile: the
user can choose exactly what they want to fold.

> * ...and if lines have been folded, go to the next group of folded lines?

Oh!  That's interesting.  That way one could quickly unfold any
folded areas by repeatedly hitting M-[.  Nice.

>> I would expect M-[ to do some default 
>> folding action, for example: from the current line until the next blank line, 
>> or: when the cursor is somewhere in a block (delimited by blank lines), to 
>> fold that block...
> 
> I'm afraid that might be terrifying for some users, watching their lines 
> "disappear" because they've pressed the wrong key.

Hmm...  Yes, maybe.  But... the folded lines will be replaced by a line
that says "folded xx lines", and they can be immediately unfolded again
with another M-[.  If the user does not know what key they hit, maybe
M-U should also undo a folding action?


Benno
OpenPGP_signature.asc (application/pgp-signature, 840 B)
-----BEGIN PGP SIGNATURE-----

wsF5BAABCAAjFiEEFo5vQpe/16ea/USWUUu+Lrjhlh8FAmcQ1kIFAwAAAAAACgkQUUu+Lrjhlh9d
YRAA2XjLYvAgfPAvIlCfHhLZH+ODLN5bOOXSd0BBCIgRGaLb0Dm/esGFh94DTMQegD1Z0bu/LIDm
7LY0YeNn0JSSrHekrTUoKXUgfo85/RqPw5478CB3fSQE8ejI/en6IiT3Ekcdnt95VXi5/baBOJNz
0T+LOsijpO31VqDn2fcwGZb3O9+BuJwY1qizJBoqUBMewEKK21jzKaJZUnVqgUlXUdAoBE1Kuixy
8lBdBtvkcr5l29ftjVcqKHevEOpZm7sNZB2fPiNw4MXQaGOesX2ZE/JEU+cN2FjkQEhjbePDfiDx
AVKfYnrMyzCJWL1IpFi7Tg4zNkxSqLqdZVKDI9N35CEsKYWD2uk3NCLel64ru9HugMwCdSyu9BO8
ZNDs9vJ793pRtYR0a8+fMq0Q/VXdwPU0XW8up1YONC32niKBv/lluugPPOj3gEIECB6NfpHAWEd2
anS92Nrvpq/Rr9ji3sD5K7s9LKb4iRR/OU9lIuHbP/jrIBkTUcWRTSIwoGBnkzaiY5lBBZMJCko5
eQ/6yjpUbW28ORLhdl+VKj/1fFUzg869YRWaYlSNZ4WcZB0qDdnehBvMc2vKyCy06myl55CjUY5U
GLt2spOdth/MMpgZlq8ezWzbV/D2Ie+dgCR+21jB94f/swLwO7clAkt28lUSN49TDuApM5AiKPXf
/tg=
=EX7+
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.