Add key bindings to go to the previous/next month/year

In addition to generic key bindings for moving one day (week)
forward/backward, define similar bindings for moving a month or a year.
Of course, count prefixes are allowed here as well.

Also add status bar hints and help texts.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer
2012-06-12 23:12:51 +02:00
parent 42c486d30d
commit cabc22e032
6 changed files with 88 additions and 4 deletions

View File

@@ -71,6 +71,10 @@ static struct keydef_s keydef[NBKEYS] = {
{"generic-next-day", "C-l"},
{"generic-prev-week", "C-k"},
{"generic-next-week", "C-j"},
{"generic-prev-month", "M"},
{"generic-next-month", "m"},
{"generic-prev-year", "Y"},
{"generic-next-year", "y"},
{"generic-scroll-down", "C-n"},
{"generic-scroll-up", "C-p"},
{"generic-goto-today", "C-g"},
@@ -466,6 +470,19 @@ void keys_popup_info(enum key key)
info[KEY_GENERIC_NEXT_WEEK] =
_
("Move to next week in calendar, whichever panel is currently selected.");
info[KEY_GENERIC_PREV_MONTH] =
_("Move to previous month in calendar, whichever panel is currently "
"selected");
info[KEY_GENERIC_NEXT_MONTH] =
_
("Move to next month in calendar, whichever panel is currently "
"selected.");
info[KEY_GENERIC_PREV_YEAR] =
_("Move to previous year in calendar, whichever panel is currently "
"selected");
info[KEY_GENERIC_NEXT_YEAR] =
_
("Move to next year in calendar, whichever panel is currently selected.");
info[KEY_GENERIC_SCROLL_DOWN] =
_
("Scroll window down (e.g. when displaying text inside a popup window).");