Add command prompt
This adds support for vim-style command mode. The command mode can be entered with pressing ":" (by default, the key binding is configurable). Currently, no command is supported. Support for various commands will be added later. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
@@ -78,6 +78,7 @@ static struct keydef_s keydef[NBKEYS] = {
|
||||
{"generic-scroll-down", "C-n"},
|
||||
{"generic-scroll-up", "C-p"},
|
||||
{"generic-goto-today", "C-g"},
|
||||
{"generic-command", ":"},
|
||||
|
||||
{"move-right", "l L RGT"},
|
||||
{"move-left", "h H LFT"},
|
||||
@@ -513,6 +514,7 @@ void keys_popup_info(enum key key)
|
||||
_("Scroll window up (e.g. when displaying text inside a popup window).");
|
||||
info[KEY_GENERIC_GOTO_TODAY] =
|
||||
_("Go to today, whichever panel is selected.");
|
||||
info[KEY_GENERIC_CMD] = _("Enter command mode.");
|
||||
info[KEY_MOVE_RIGHT] = _("Move to the right.");
|
||||
info[KEY_MOVE_LEFT] = _("Move to the left.");
|
||||
info[KEY_MOVE_DOWN] = _("Move down.");
|
||||
|
||||
Reference in New Issue
Block a user