diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2013-07-17 00:37:07 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2013-07-17 14:03:53 +0200 |
commit | c4dae80dd23989d4146475de3d16d1636b190c9d (patch) | |
tree | cca4767a14af66639ceead8f85dc8d1d12ca7090 /src/keys.c | |
parent | 5c6131d5eca9910e06e14b0b2c4b72a21ef2e4b4 (diff) | |
download | calcurse-c4dae80dd23989d4146475de3d16d1636b190c9d.zip |
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>
Diffstat (limited to 'src/keys.c')
-rw-r--r-- | src/keys.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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."); |