nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 95dd8732058262c1d605923c359f78471ddfce81
parent e901387b7252c63c0eba02dc8b987647de6a8173
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon, 15 Oct 2018 21:00:02 +0200

bindings: no longer bind F13 and F14 and F15

The bindings for F1 to F12 are there for compatibility with Pico.
But Pico does not know anything about F13 to F16; for unknown reasons
they were added to nano.  They seem hardly useful: normal keyboards
do not have the F13 to F16 keys, and very few people know that they
can "produce" those keys by holding Shift with F1 to F4.  But typing
Shift plus F1 to F4 are just as "hard" as, for example, M-G and M-W,
so why anyone would want to use the first ones...?  Especially since
many other functions of nano can only be accessed through Meta and
Control combinations.

Furthermore, F13 to F15 haven't been shown in the help texts since
version 2.3.3, so for more than four years no new user will have
learned about those keystrokes.

The rare user who wants these strange bindings can easily make them
herself.

Diffstat:
Msrc/global.c | 8--------
1 file changed, 0 insertions(+), 8 deletions(-)

diff --git a/src/global.c b/src/global.c @@ -1365,14 +1365,6 @@ void shortcut_init(void) #ifdef ENABLE_SPELLER add_to_sclist(MMAIN, "F12", 0, do_spell, 0); #endif - add_to_sclist(MMAIN, "F13", 0, do_gotolinecolumn_void, 0); -#ifdef ENABLE_BROWSER - add_to_sclist(MBROWSER, "F13", 0, goto_dir_void, 0); -#endif - add_to_sclist(MMAIN, "F14", 0, do_replace, 0); -#ifndef NANO_TINY - add_to_sclist(MMAIN, "F15", 0, do_mark, 0); -#endif #ifdef DEBUG print_sclist();