aboutsummaryrefslogtreecommitdiffstats
path: root/config.h
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-08-20 16:47:23 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-08-20 16:47:23 +0530
commit3d89b3f9456cfc5c4f6000dc9b4f706a432e4e7c (patch)
tree0f949e3af6ab6f54af803609b77bf8bc5cc15d54 /config.h
parent29961f060cf585da3111e2420a76c595dd42f0fb (diff)
downloadnnn-3d89b3f9456cfc5c4f6000dc9b4f706a432e4e7c.tar.gz
Support mark a directory
In certain workflows you know you would have revisit a directory. Mark it!
Diffstat (limited to 'config.h')
-rw-r--r--config.h7
1 files changed, 7 insertions, 0 deletions
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 */