commit 02d50bd4aaa76ed2b9cf18f6a1deb344e669d14b
parent 67d459b2629ffe0f3535438b5b057a4fcd5f8fb7
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Fri, 29 Mar 2024 12:52:27 +0100
help: mention M-Home and M-End in the help text and help lines
Make these new keystrokes discoverable for people who read help texts.
Diffstat:
1 file changed, 11 insertions(+), 0 deletions(-)
diff --git a/src/global.c b/src/global.c
@@ -603,6 +603,10 @@ void shortcut_init(void)
const char *paraend_gist =
N_("Go just beyond end of paragraph; then of next paragraph");
#endif
+#ifndef NANO_TINY
+ const char *toprow_gist = N_("Go to first row in the viewport");
+ const char *bottomrow_gist = N_("Go to last row in the viewport");
+#endif
const char *prevpage_gist = N_("Go one screenful up");
const char *nextpage_gist = N_("Go one screenful down");
const char *firstline_gist = N_("Go to the first line of the file");
@@ -948,6 +952,13 @@ void shortcut_init(void)
N_("End of Paragraph"), WHENHELP(paraend_gist), BLANKAFTER);
#endif
+#ifndef NANO_TINY
+ add_to_funcs(to_top_row, MMAIN,
+ N_("Top Row"), WHENHELP(toprow_gist), TOGETHER);
+ add_to_funcs(to_bottom_row, MMAIN,
+ N_("Bottom Row"), WHENHELP(bottomrow_gist), BLANKAFTER);
+#endif
+
add_to_funcs(do_page_up, MMAIN|MHELP,
/* TRANSLATORS: Try to keep the next six strings at most 12 characters. */
N_("Prev Page"), WHENHELP(prevpage_gist), TOGETHER);