diff options
author | Frederic Culot <calcurse@culot.org> | 2006-08-06 14:38:05 +0000 |
---|---|---|
committer | Frederic Culot <calcurse@culot.org> | 2006-08-06 14:38:05 +0000 |
commit | 9fb69d607f39268cc7e17a7300eda5866c65e7c9 (patch) | |
tree | a0b4cd4cc9b1d30d4ecff421d6aef14618e31a00 | |
parent | ef2d0beefd7bd14de909e71e0dc6e59fe6c96ce7 (diff) | |
download | calcurse-9fb69d607f39268cc7e17a7300eda5866c65e7c9.zip |
keybinding changed: CTRL-L is now used to redraw screen
keybinding added: R to repeat an item
-rwxr-xr-x | src/calcurse.c | 10 | ||||
-rwxr-xr-x | src/utils.c | 19 |
2 files changed, 18 insertions, 11 deletions
diff --git a/src/calcurse.c b/src/calcurse.c index 37f7545..6353cb9 100755 --- a/src/calcurse.c +++ b/src/calcurse.c @@ -1,4 +1,4 @@ -/* $calcurse: calcurse.c,v 1.3 2006/08/02 21:21:08 culot Exp $ */ +/* $calcurse: calcurse.c,v 1.4 2006/08/06 14:38:05 culot Exp $ */ /* * Calcurse - text-based organizer @@ -236,8 +236,7 @@ int main(int argc, char **argv) } break; - case 'R': - case 'r': + case CTRL('L'): reinit_wins(); break; @@ -313,6 +312,11 @@ int main(int argc, char **argv) do_storage = true; break; + case 'R': + case 'r': + recur_repeat_item(sel_year, sel_month, sel_day, hilt_app, colr); + break; + case '?': /* Online help system */ status_bar(which_pan, colr, nc_bar, nl_bar); help_screen(which_pan, colr); diff --git a/src/utils.c b/src/utils.c index ded00fb..b1c61ee 100755 --- a/src/utils.c +++ b/src/utils.c @@ -1,4 +1,4 @@ -/* $calcurse: utils.c,v 1.1 2006/07/31 21:00:03 culot Exp $ */ +/* $calcurse: utils.c,v 1.2 2006/08/06 14:38:50 culot Exp $ */ /* * Calcurse - text-based organizer @@ -357,7 +357,7 @@ void status_bar(int which_pan, int colr, int nc_bar, int nl_bar) custom_apply_attr(swin, ATTR_HIGHEST); mvwprintw(swin, 0, 0, " ?"); mvwprintw(swin, 1, 0, " Q"); - mvwprintw(swin, 0, len_cal_itm, " R"); + mvwprintw(swin, 0, len_cal_itm, " ^L"); mvwprintw(swin, 1, len_cal_itm, " S"); mvwprintw(swin, 0, 2 * len_cal_itm, "H/L"); mvwprintw(swin, 1, 2 * len_cal_itm, "J/K"); @@ -386,15 +386,16 @@ void status_bar(int which_pan, int colr, int nc_bar, int nl_bar) custom_apply_attr(swin, ATTR_HIGHEST); mvwprintw(swin, 0, 0, " ?"); mvwprintw(swin, 1, 0, " Q"); - mvwprintw(swin, 0, len_oth_itm, " R"); + mvwprintw(swin, 0, len_oth_itm, " ^L"); mvwprintw(swin, 1, len_oth_itm, " S"); mvwprintw(swin, 0, 2 * len_oth_itm, "J/K"); mvwprintw(swin, 1, 2 * len_oth_itm, "Tab"); mvwprintw(swin, 0, 3 * len_oth_itm, " A"); mvwprintw(swin, 1, 3 * len_oth_itm, " D"); - mvwprintw(swin, 0, 4 * len_oth_itm, " G"); - mvwprintw(swin, 1, 4 * len_oth_itm, " V"); - mvwprintw(swin, 0, 5 * len_oth_itm, " C"); + mvwprintw(swin, 0, 4 * len_oth_itm, " R"); + mvwprintw(swin, 1, 4 * len_oth_itm, " G"); + mvwprintw(swin, 0, 5 * len_oth_itm, " V"); + mvwprintw(swin, 1, 5 * len_oth_itm, " C"); custom_remove_attr(swin, ATTR_HIGHEST); wnoutrefresh(swin); @@ -412,10 +413,12 @@ void status_bar(int which_pan, int colr, int nc_bar, int nl_bar) mvwprintw(swin, 1, 3 * len_oth_itm + len_let + spc_lad, _("Del Item")); mvwprintw(swin, 0, 4 * len_oth_itm + len_let + spc_lad, - _( "GoTo")); + _("Repeat")); mvwprintw(swin, 1, 4 * len_oth_itm + len_let + spc_lad, - _("View")); + _( "GoTo")); mvwprintw(swin, 0, 5 * len_oth_itm + len_let + spc_lad, + _("View")); + mvwprintw(swin, 1, 5 * len_oth_itm + len_let + spc_lad, _("Config")); } wnoutrefresh(swin); |