From c4dae80dd23989d4146475de3d16d1636b190c9d Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Wed, 17 Jul 2013 00:37:07 +0200 Subject: 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 --- src/keys.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/keys.c') diff --git a/src/keys.c b/src/keys.c index 0ef3085..83b1fb3 100644 --- a/src/keys.c +++ b/src/keys.c @@ -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."); -- cgit v1.2.3-54-g00ecf