summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2007-03-24 23:12:35 +0000
committerFrederic Culot <calcurse@culot.org>2007-03-24 23:12:35 +0000
commit05b7770662df453b1cf0c6de36abe1ebc54a7022 (patch)
tree5eaec52de6ed88abfe093cc6139b86d054ac9b05 /src
parentee15a02f8ccb752b7a854906c3935356620f2f44 (diff)
downloadcalcurse-05b7770662df453b1cf0c6de36abe1ebc54a7022.zip
'X' and '!' keybindings added
Diffstat (limited to 'src')
-rwxr-xr-xsrc/utils.c62
-rwxr-xr-xsrc/utils.h8
2 files changed, 36 insertions, 34 deletions
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 */