summaryrefslogtreecommitdiff
path: root/src/wins.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2013-07-17 00:37:07 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2013-07-17 14:03:53 +0200
commitc4dae80dd23989d4146475de3d16d1636b190c9d (patch)
treecca4767a14af66639ceead8f85dc8d1d12ca7090 /src/wins.c
parent5c6131d5eca9910e06e14b0b2c4b72a21ef2e4b4 (diff)
downloadcalcurse-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/wins.c')
-rw-r--r--src/wins.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/wins.c b/src/wins.c
index c200b6e..4cb9b15 100644
--- a/src/wins.c
+++ b/src/wins.c
@@ -621,6 +621,7 @@ void wins_status_bar(void)
struct binding today = { _("Today"), KEY_GENERIC_GOTO_TODAY };
struct binding nview = { _("Nxt View"), KEY_GENERIC_SCROLL_DOWN };
struct binding pview = { _("Prv View"), KEY_GENERIC_SCROLL_UP };
+ struct binding cmd = { _("Command"), KEY_GENERIC_CMD };
struct binding up = { _("Up"), KEY_MOVE_UP };
struct binding down = { _("Down"), KEY_MOVE_DOWN };
struct binding left = { _("Left"), KEY_MOVE_LEFT };
@@ -647,7 +648,7 @@ void wins_status_bar(void)
&gpday, &gnday,
&gpweek, &gnweek, &gpmonth, &gnmonth, &gpyear, &gnyear,
&draw, &today,
- &conf
+ &conf, &cmd
};
struct binding *bindings_apoint[] = {
@@ -657,7 +658,7 @@ void wins_status_bar(void)
&gpday, &gnday,
&gpweek, &gnweek, &gpmonth, &gnmonth, &gpyear, &gnyear,
&togo, &today,
- &conf, &appt, &todo, &copy, &paste
+ &conf, &appt, &todo, &copy, &paste, &cmd
};
struct binding *bindings_todo[] = {
@@ -667,7 +668,7 @@ void wins_status_bar(void)
&gpday, &gnday,
&gpweek, &gnweek, &gpmonth, &gnmonth, &gpyear, &gnyear,
&togo, &today,
- &conf, &appt, &todo, &draw
+ &conf, &appt, &todo, &draw, &cmd
};
enum win active_panel = wins_slctd();