Re: Help Line Text
Benno Schulenberg <[email protected]> Sun, 23 Feb 2020 13:42:39 +0100
| Newsgroups | gmane.editors.nano.general |
|---|---|
| Message-ID | <[email protected]> |
Op 21-02-2020 om 18:55 schreef [email protected]: > By the way, what exactly do I need to type into the .nanorc file to rebind > something to the escape key? The <Esc> key cannot be rebound. Its code is the starting code of escape sequences, things that most non-symbol keys normally produce. Yes, in theory <Esc> could be made rebindable, but at the cost of not being able to recognize any escape sequence any more. That is not an acceptable trade-off. > As for reordering the shortcuts and perhaps displaying different ones in > different orders in the help lines, I thought it would be nice to only display > the shortcuts I rarely use there. I understand now. However, the order in which the shortcuts are listed is baked hard into nano -- the order in the help lines is also the order in the corresponding help text (^G). There has not been any demand or suggestion so far to make this order configurable, nor even any suggestion to improve the order or selection of shortcuts that are displayed by default. I am not going to look into making the order configurable (too much work), but if you have well-thought-out suggestions for a better order/selection of shortcuts that would maximize the usefulness of those two help lines for novices, then please post your suggestions to nano-devel -- that is the list for proposing changes to nano. > As I mentioned before, I rebound my most commonly used shortcuts to what I have > already memorised, but the other ones which I rarely use I left on default. As an aside: a disadvantage of making your custom bindings is that, when you are on someone else's computer, or ssh to another machine, or run from a live USB stick, you will be working with a default nano and you will quite likely mistype things if you've grown accustomed to your own bindings. I think if will pay off in the end if you learn to live with most of nano's default bindings. (Also because nano's ^K isn't really like ^X in other editors -- it cuts the current line when nothing is selected. Using ^K for this is a nice reminder of this fact.) > For instance, it would be much more useful for me to see prompts on the help > lines such as "^T Spell Check", or "M-B Syntax Check" (the ones which I rarely > use and have not memorised) so that I can use them when I need them, Out of curiosity: do you ever use M-B? If yes, for what kind of files? Benno
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEv9AJBh5TUFKtDfIVDSjU0qCs6IQFAl5Sc0gACgkQDSjU0qCs 6IQPNg/8Cj/Bh5ta+vzk8F6V2D7D06ZXb6p5Y2yL7bO1AZ2eyhciLCFsBrh9cYbc fkuf/o9d23EWFNxJDTfDEEoIzqP3bw9l01mJdcfArKgGaIEObmzclKBsrLjFUSLM fwrEaI+NUEMqXd2aAd2dYly1oU/rM6a1XDqusHcTwM8Yw/FZfv2C8biB5q/scWaO MdVL3DheTOjvWpqvsHRY4S+H6nop6YAxWNQ5ctfXs/zmeKn81OyBONrLj7qqeDT5 36iSvnpvcaedbgXqnrIkAKlhpf58QypGydRoxId2Hilk7QYgFbXfY4GzpXItK4De inoJ9j7ffEyD93M7yIwua+KQx2aHm6sGtud79Dd42x4kDHWlOkeux65dsLekqJUW JGQPcLa2lmx4sovga1mzGZC5zQzgi8wJMD6weBxwCq6h1b1RlR32In8ML/w9AlDu q12B6F+REwi3Aa85dRLZrqDNyUfI/PuMeF/WSmEZXAwOQ8N7mC/XElk3vgy/Ub3o am9Rc99+KDAiESa4DDejR7VwFHvxi7or9aqHx6wjfXmd6QUDXM00buAnn5jvO0Y0 GQfoW4kjFekklbz/+LIKp+M+whT3yGzAl5+VG6Cz9K8s409fCO3F6CeerwNphIWG 8IH0AIQudx+vu5dC/4iedBsHWUmS2ULPhqDb/uscJ0KsE6pk2WA= =5AV2 -----END PGP SIGNATURE-----