summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-06-13 00:03:54 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2012-06-13 00:16:55 +0200
commit1d74966a60c31716be090f15bf3988d2b389d5cf (patch)
tree262c31f66f729e43e752ea6be421370dfb921684
parentcabc22e032b933a84335da9acbbf0721eed9c63f (diff)
downloadcalcurse-1d74966a60c31716be090f15bf3988d2b389d5cf.zip
src/keys.c: Add vim-style default bindings for generic-*
Add vim-style key bindings for generic-prev-day, generic-next-day, generic-prev-week and generic-next-week in a fashion similar to what we use for generic-*-month and generic-*-year. The key "t"/"T" for generic-prev-day/generic-next-day is somewhat less than perfect but this is okay given that we're running out of keys... Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
-rw-r--r--src/keys.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/keys.c b/src/keys.c
index f670f9a..ebc97f3 100644
--- a/src/keys.c
+++ b/src/keys.c
@@ -67,10 +67,10 @@ static struct keydef_s keydef[NBKEYS] = {
{"generic-redraw", "C-r"},
{"generic-add-appt", "C-a"},
{"generic-add-todo", "C-t"},
- {"generic-prev-day", "C-h"},
- {"generic-next-day", "C-l"},
- {"generic-prev-week", "C-k"},
- {"generic-next-week", "C-j"},
+ {"generic-prev-day", "T C-h"},
+ {"generic-next-day", "t C-l"},
+ {"generic-prev-week", "W C-k"},
+ {"generic-next-week", "w C-j"},
{"generic-prev-month", "M"},
{"generic-next-month", "m"},
{"generic-prev-year", "Y"},