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.
This commit is contained in:
Benno Schulenberg 2024-03-29 12:52:27 +01:00
parent 67d459b262
commit 02d50bd4aa
1 changed files with 11 additions and 0 deletions

View File

@ -602,6 +602,10 @@ void shortcut_init(void)
N_("Go to beginning of paragraph; then of previous paragraph");
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");
@ -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);