From 2f7bd169ea07be3b7f9cbcebfd9dc2082d9edd47 Mon Sep 17 00:00:00 2001 From: Bert Date: Sat, 22 Jan 2011 23:37:13 +0100 Subject: [PATCH] Added g/G mappings for goto first/last image --- main.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/main.c b/main.c index 5c29e8e..c7b102e 100644 --- a/main.c +++ b/main.c @@ -168,6 +168,20 @@ void on_keypress(XEvent *ev) { changed = 1; } break; + case 'g': + if (fileidx != 0) { + fileidx = 0; + img_load(&img, filenames[fileidx]); + changed = 1; + } + break; + case 'G': + if (fileidx != filecnt - 1) { + fileidx = filecnt - 1; + img_load(&img, filenames[fileidx]); + changed = 1; + } + break; /* zooming */ case '+':