aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-03-07 18:32:48 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-03-07 18:32:48 +0530
commiteddc0c93bab44f2503fe6a28db8d0d545ceb03f8 (patch)
tree644d199e9184e413940fa76214842b7296f790cd
parent91ef394dbdd91ad9796aaaf6a1dfe7517ed116ae (diff)
downloadnnn-eddc0c93bab44f2503fe6a28db8d0d545ceb03f8.tar.gz
Fix #95: Add ^I as an alternative to Insert
-rw-r--r--README.md2
-rw-r--r--nnn.12
-rw-r--r--nnn.c3
-rw-r--r--nnn.h1
4 files changed, 5 insertions, 3 deletions
diff --git a/README.md b/README.md
index 7459a26..f1648c4 100644
--- a/README.md
+++ b/README.md
@@ -221,7 +221,7 @@ optional arguments:
→, ↵, l, ^M | Open file or enter dir
←, Bksp, h, ^H | Go to parent dir
^O | Open with...
- Insert | Toggle navigate-as-you-type
+ Insert, ^I | Toggle navigate-as-you-type
~ | Go HOME
& | Go to initial dir
- | Go to last visited dir
diff --git a/nnn.1 b/nnn.1
index db0e8de..3896200 100644
--- a/nnn.1
+++ b/nnn.1
@@ -48,7 +48,7 @@ Open file or enter directory
Back up one directory level
.It Ic ^O
Open with a custom application
-.It Ic [Insert]
+.It Ic [Insert], ^I
Toggle navigate-as-you-type mode
.It Ic ~
Change to the HOME directory
diff --git a/nnn.c b/nnn.c
index 1bb62bb..3acc682 100644
--- a/nnn.c
+++ b/nnn.c
@@ -1144,6 +1144,7 @@ filterentries(char *path)
case CONTROL('G'): // fallthrough
case CONTROL('X'): // fallthrough
case CONTROL('F'): // fallthrough
+ case CONTROL('I'): // fallthrough
case CONTROL('T'):
if (len == 1)
cur = oldcur;
@@ -1898,7 +1899,7 @@ show_help(char *path)
"4→, ↵, l, ^M | Open file or enter dir\n"
"1←, Bksp, h, ^H | Go to parent dir\n"
"d^O | Open with...\n"
- "9Insert | Toggle navigate-as-you-type\n"
+ "5Insert, ^I | Toggle navigate-as-you-type\n"
"e~ | Go HOME\n"
"e& | Go to initial dir\n"
"e- | Go to last visited dir\n"
diff --git a/nnn.h b/nnn.h
index 1983485..9e37f0f 100644
--- a/nnn.h
+++ b/nnn.h
@@ -118,6 +118,7 @@ static struct key bindings[] = {
{ '/', SEL_FLTR, "", "" },
/* Toggle filter mode */
{ KEY_IC, SEL_MFLTR, "", "" },
+ { CONTROL('I'), SEL_MFLTR, "", "" },
/* Desktop search */
{ CONTROL('_'), SEL_SEARCH, "", "" },
/* Toggle hide .dot files */