'X' and '!' keybindings added

This commit is contained in:
Frederic Culot 2007-03-24 23:12:35 +00:00
parent ee15a02f8c
commit 05b7770662
2 changed files with 36 additions and 34 deletions

View File

@ -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 * Calcurse - text-based organizer
@ -378,9 +378,11 @@ status_bar(int which_pan, int nc_bar, int nl_bar)
binding_t help = { " ?", _("Help") }; binding_t help = { " ?", _("Help") };
binding_t quit = { " Q", _("Quit") }; binding_t quit = { " Q", _("Quit") };
binding_t save = { " S", _("Save") }; binding_t save = { " S", _("Save") };
binding_t export = { " X", _("Export") };
binding_t add = { " A", _("Add Item") }; binding_t add = { " A", _("Add Item") };
binding_t del = { " D", _("Del Item") }; binding_t del = { " D", _("Del Item") };
binding_t edit = { " E", _("Edit Itm") }; binding_t edit = { " E", _("Edit Itm") };
binding_t flag = { " !", _("Flag Itm") };
binding_t day = { "H/L", _("-+1 Day") }; binding_t day = { "H/L", _("-+1 Day") };
binding_t week = { "K/J", _("-+1 Week") }; binding_t week = { "K/J", _("-+1 Week") };
binding_t updn = { "K/J", _("Up/Down") }; binding_t updn = { "K/J", _("Up/Down") };
@ -399,16 +401,16 @@ status_bar(int which_pan, int nc_bar, int nl_bar)
binding_t *binding[TOTAL_CMDS] = { binding_t *binding[TOTAL_CMDS] = {
/* calendar keys */ /* calendar keys */
&help, &quit, &save, &togo, &day, &week, &tab, &conf, &draw, &help, &quit, &save, &export, &day, &week, &tab, &togo, &appt,
&appt, &todo, &othr, &eday, &ewek, &othr, &todo, &conf, &othr, &eday, &ewek, &draw, &othr,
/* appointment keys */ /* appointment keys */
&help, &quit, &save, &togo, &add, &del, &edit, &view, &rept, &help, &quit, &save, &export, &add, &del, &edit, &view, &rept,
&updn, &tab, &othr, &conf, &draw, &appt, &todo, &eday, &ewek, &updn, &flag, &othr, &conf, &togo, &appt, &todo, &eday, &ewek,
&othr, &tab, &draw, &othr,
/* todo keys */ /* todo keys */
&help, &quit, &save, &togo, &add, &del, &edit, &view, &prio, &help, &quit, &save, &export, &add, &del, &edit, &view, &prio,
&updn, &tab, &othr, &conf, &draw, &appt, &todo, &eday, &ewek, &updn, &tab, &othr, &conf, &togo, &appt, &todo, &eday, &ewek,
&othr &draw, &othr
}; };
/* Total length of a command. */ /* Total length of a command. */

View File

@ -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 * Calcurse - text-based organizer
@ -32,9 +32,9 @@
#define SPC 32 /* ASCII code for white space */ #define SPC 32 /* ASCII code for white space */
#define NB_CAL_CMDS 15 /* number of commands while in cal view */ #define NB_CAL_CMDS 16 /* number of commands while in cal view */
#define NB_APP_CMDS 19 /* same thing while in appointment view */ #define NB_APP_CMDS 21 /* same thing while in appointment view */
#define NB_TOD_CMDS 19 /* same thing while in todo 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 TOTAL_CMDS NB_CAL_CMDS + NB_APP_CMDS + NB_TOD_CMDS
#define NB_PANELS 3 /* 3 panels: CALENDAR, APPOINTMENT, TODO */ #define NB_PANELS 3 /* 3 panels: CALENDAR, APPOINTMENT, TODO */
#define CMDS_PER_LINE 6 /* max number of commands per line */ #define CMDS_PER_LINE 6 /* max number of commands per line */