Fix #95: Add ^I as an alternative to Insert

This commit is contained in:
Arun Prakash Jana 2018-03-07 18:32:48 +05:30
parent 91ef394dbd
commit eddc0c93ba
No known key found for this signature in database
GPG key ID: A75979F35C080412
4 changed files with 5 additions and 3 deletions

View file

@ -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

2
nnn.1
View file

@ -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

3
nnn.c
View file

@ -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"

1
nnn.h
View file

@ -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 */