diary

Text-based journaling program
git clone https://git.in0rdr.ch/diary.git
Log | Files | Refs | README | LICENSE

commit 61b1fff5b0e40b7eafca24ff47eaca0899f9c9ab
parent b3d3a86132803981e9274212bb94e453b7d93594
Author: mbjd <vir.ingens@gmail.com>
Date:   Sat, 19 Nov 2016 14:44:39 +0100

New keybindings:

- n to go to the current day ('now')
- i and Enter to edit (i like in vim)

Diffstat:
Mdiary.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/diary.c b/diary.c @@ -219,10 +219,13 @@ int main(int argc, char** argv) ret = go_to(cal, aside, timelocal(&new_date), &pad_pos); break; case 't': + case 'n': new_date = cur_date; ret = go_to(cal, aside, raw_time, &pad_pos); break; case 'e': + case 'i': + case '\n': if (ecmd) { curs_set(1); system(ecmd);