aboutsummaryrefslogtreecommitdiffstats
path: root/config.def.h
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-04-24 02:36:49 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-04-24 02:36:49 +0530
commitb4166192e6f51e786ddece67245c95827a837a15 (patch)
tree34c48086675ec3d61f7e730f654c0e918b0fe83d /config.def.h
parentc9dafb297b7e0b72d527f4c1c8e57bf0f51b7eeb (diff)
downloadnnn-b4166192e6f51e786ddece67245c95827a837a15.tar.gz
Support jump to initial directory
This change remaps the & key. However, / is more relevant for filter and & makes more sense wrt. address.
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/config.def.h b/config.def.h
index 28771bf..1b53f6b 100644
--- a/config.def.h
+++ b/config.def.h
@@ -35,7 +35,6 @@ static struct key bindings[] = {
{ 'l', SEL_GOIN, "", "" },
/* Filter */
{ '/', SEL_FLTR, "", "" },
- { '&', SEL_FLTR, "", "" },
/* Next */
{ 'j', SEL_NEXT, "", "" },
{ KEY_DOWN, SEL_NEXT, "", "" },
@@ -50,12 +49,12 @@ static struct key bindings[] = {
/* Page up */
{ KEY_PPAGE, SEL_PGUP, "", "" },
{ CONTROL('U'), SEL_PGUP, "", "" },
- /* Home */
+ /* First entry */
{ KEY_HOME, SEL_HOME, "", "" },
{ 'g', SEL_HOME, "", "" },
{ CONTROL('A'), SEL_HOME, "", "" },
{ '^', SEL_HOME, "", "" },
- /* End */
+ /* Last entry */
{ KEY_END, SEL_END, "", "" },
{ 'G', SEL_END, "", "" },
{ CONTROL('E'), SEL_END, "", "" },
@@ -64,6 +63,8 @@ static struct key bindings[] = {
{ 'c', SEL_CD, "", "" },
/* HOME */
{ '~', SEL_CDHOME, "", "" },
+ /* Initial directory */
+ { '&', SEL_CDBEGIN, "", "" },
/* Last visited dir */
{ '-', SEL_LAST, "", "" },
/* Toggle hide .dot files */