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/wins.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/wins.c') 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, ©, &paste + &conf, &appt, &todo, ©, &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(); -- cgit v1.2.3-54-g00ecf