From 3d89b3f9456cfc5c4f6000dc9b4f706a432e4e7c Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sun, 20 Aug 2017 16:47:23 +0530 Subject: Support mark a directory In certain workflows you know you would have revisit a directory. Mark it! --- config.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'config.h') diff --git a/config.h b/config.h index 45f036e..275de03 100644 --- a/config.h +++ b/config.h @@ -21,6 +21,8 @@ enum action { SEL_CDBEGIN, SEL_CDLAST, SEL_CDBM, + SEL_MARK, + SEL_VISIT, SEL_TOGGLEDOT, SEL_DETAIL, SEL_STATS, @@ -111,6 +113,10 @@ static struct key bindings[] = { { '-', SEL_CDLAST, "", "" }, /* Change dir using bookmark */ { 'b', SEL_CDBM, "", "" }, + /* Mark a path to visit later */ + { CONTROL('B'), SEL_MARK, "", "" }, + /* Visit marked directory */ + { CONTROL('V'), SEL_VISIT, "", "" }, /* Toggle hide .dot files */ { '.', SEL_TOGGLEDOT, "", "" }, /* Detailed listing */ @@ -129,6 +135,7 @@ static struct key bindings[] = { { 'S', SEL_BSIZE, "", "" }, /* Toggle sort by time */ { 't', SEL_MTIME, "", "" }, + /* Redraw window */ { CONTROL('L'), SEL_REDRAW, "", "" }, { KEY_F(2), SEL_REDRAW, "", "" }, /* Copy currently selected file path */ -- cgit v1.2.3-70-g09d2