From 05b7770662df453b1cf0c6de36abe1ebc54a7022 Mon Sep 17 00:00:00 2001
From: Frederic Culot <calcurse@culot.org>
Date: Sat, 24 Mar 2007 23:12:35 +0000
Subject: 'X' and '!' keybindings added

---
 src/utils.c | 62 +++++++++++++++++++++++++++++++------------------------------
 src/utils.h |  8 ++++----
 2 files changed, 36 insertions(+), 34 deletions(-)

(limited to 'src')

diff --git a/src/utils.c b/src/utils.c
index 943b355..9458943 100755
--- a/src/utils.c
+++ b/src/utils.c
@@ -1,4 +1,4 @@
-/*	$calcurse: utils.c,v 1.25 2007/03/17 16:43:48 culot Exp $	*/
+/*	$calcurse: utils.c,v 1.26 2007/03/24 23:12:35 culot Exp $	*/
 
 /*
  * Calcurse - text-based organizer
@@ -375,40 +375,42 @@ status_bar(int which_pan, int nc_bar, int nl_bar)
 	const int pos[NB_PANELS + 1] = 
 		{0, NB_CAL_CMDS, NB_CAL_CMDS + NB_APP_CMDS, TOTAL_CMDS};
 
-	binding_t help = { "  ?", _("Help") };
-	binding_t quit = { "  Q", _("Quit") };
-	binding_t save = { "  S", _("Save") };
-	binding_t add  = { "  A", _("Add Item") };
-	binding_t del  = { "  D", _("Del Item") };
-	binding_t edit = { "  E", _("Edit Itm") };
-	binding_t day  = { "H/L", _("-+1 Day") };
-	binding_t week = { "K/J", _("-+1 Week") };
-	binding_t updn = { "K/J", _("Up/Down") };
-	binding_t rept = { "  R", _("Repeat") };
-	binding_t prio = { "+/-", _("Priority") };
-	binding_t tab  = { "Tab", _("Chg View") };	
-	binding_t togo = { "  G", _("Go to") };
-	binding_t conf = { "  C", _("Config") };
-	binding_t view = { "  V", _("View") };
-	binding_t draw = { " ^R", _("Redraw") };
-	binding_t appt = { " ^A", _("Add Appt") };
-	binding_t todo = { " ^T", _("Add Todo") };
-	binding_t eday = { "^HL", _("-+1 Day") };
-	binding_t ewek = { "^KJ", _("-+1 Week") };
-	binding_t othr = { "  O", _("OtherCmd") }; 
+	binding_t help   = { "  ?", _("Help") };
+	binding_t quit   = { "  Q", _("Quit") };
+	binding_t save   = { "  S", _("Save") };
+	binding_t export = { "  X", _("Export") };
+	binding_t add    = { "  A", _("Add Item") };
+	binding_t del    = { "  D", _("Del Item") };
+	binding_t edit   = { "  E", _("Edit Itm") };
+	binding_t flag   = { "  !", _("Flag Itm") };
+	binding_t day    = { "H/L", _("-+1 Day") };
+	binding_t week   = { "K/J", _("-+1 Week") };
+	binding_t updn   = { "K/J", _("Up/Down") };
+	binding_t rept   = { "  R", _("Repeat") };
+	binding_t prio   = { "+/-", _("Priority") };
+	binding_t tab    = { "Tab", _("Chg View") };	
+	binding_t togo   = { "  G", _("Go to") };
+	binding_t conf   = { "  C", _("Config") };
+	binding_t view   = { "  V", _("View") };
+	binding_t draw   = { " ^R", _("Redraw") };
+	binding_t appt   = { " ^A", _("Add Appt") };
+	binding_t todo   = { " ^T", _("Add Todo") };
+	binding_t eday   = { "^HL", _("-+1 Day") };
+	binding_t ewek   = { "^KJ", _("-+1 Week") };
+	binding_t othr   = { "  O", _("OtherCmd") }; 
 
 	binding_t *binding[TOTAL_CMDS] = {
 	/* calendar keys */
-		&help, &quit, &save, &togo, &day, &week, &tab, &conf, &draw, 
-		&appt, &todo, &othr, &eday, &ewek, &othr, 
+		&help, &quit, &save, &export, &day, &week, &tab, &togo, &appt, 
+		&todo, &conf, &othr, &eday, &ewek, &draw, &othr, 
 	/* appointment keys */
-		&help, &quit, &save, &togo, &add, &del, &edit, &view, &rept, 
-		&updn, &tab, &othr, &conf, &draw, &appt, &todo, &eday, &ewek, 
-		&othr,
+		&help, &quit, &save, &export, &add, &del, &edit, &view, &rept, 
+		&updn, &flag, &othr, &conf, &togo, &appt, &todo, &eday, &ewek, 
+		&tab, &draw, &othr,
 	/* todo keys */
-		&help, &quit, &save, &togo, &add, &del, &edit, &view, &prio, 
-		&updn, &tab, &othr, &conf, &draw, &appt, &todo, &eday, &ewek, 
-		&othr 
+		&help, &quit, &save, &export, &add, &del, &edit, &view, &prio, 
+		&updn, &tab, &othr, &conf, &togo, &appt, &todo, &eday, &ewek, 
+		&draw, &othr 
 	};
 		
 	/* Total length of a command. */
diff --git a/src/utils.h b/src/utils.h
index 28a7a1a..59b9619 100755
--- a/src/utils.h
+++ b/src/utils.h
@@ -1,4 +1,4 @@
-/*	$calcurse: utils.h,v 1.16 2007/03/17 16:43:25 culot Exp $	*/
+/*	$calcurse: utils.h,v 1.17 2007/03/24 23:12:35 culot Exp $	*/
 
 /*
  * Calcurse - text-based organizer
@@ -32,9 +32,9 @@
 
 #define SPC		32 /* ASCII code for white space */
 
-#define NB_CAL_CMDS	15 /* number of commands while in cal view */
-#define NB_APP_CMDS	19 /* same thing while in appointment view */ 
-#define NB_TOD_CMDS	19 /* same thing while in todo view */
+#define NB_CAL_CMDS	16 /* number of commands while in cal view */
+#define NB_APP_CMDS	21 /* same thing while in appointment view */ 
+#define NB_TOD_CMDS	20 /* same thing while in todo view */
 #define TOTAL_CMDS	NB_CAL_CMDS + NB_APP_CMDS + NB_TOD_CMDS
 #define NB_PANELS	3  /* 3 panels: CALENDAR, APPOINTMENT, TODO */
 #define CMDS_PER_LINE	6  /* max number of commands per line */
-- 
cgit v1.2.3-70-g09d2