mirror of
https://github.com/jarun/nnn.git
synced 2024-12-01 02:49:44 +00:00
Fix #95: Add ^I as an alternative to Insert
This commit is contained in:
parent
91ef394dbd
commit
eddc0c93ba
|
@ -221,7 +221,7 @@ optional arguments:
|
||||||
→, ↵, l, ^M | Open file or enter dir
|
→, ↵, l, ^M | Open file or enter dir
|
||||||
←, Bksp, h, ^H | Go to parent dir
|
←, Bksp, h, ^H | Go to parent dir
|
||||||
^O | Open with...
|
^O | Open with...
|
||||||
Insert | Toggle navigate-as-you-type
|
Insert, ^I | Toggle navigate-as-you-type
|
||||||
~ | Go HOME
|
~ | Go HOME
|
||||||
& | Go to initial dir
|
& | Go to initial dir
|
||||||
- | Go to last visited dir
|
- | Go to last visited dir
|
||||||
|
|
2
nnn.1
2
nnn.1
|
@ -48,7 +48,7 @@ Open file or enter directory
|
||||||
Back up one directory level
|
Back up one directory level
|
||||||
.It Ic ^O
|
.It Ic ^O
|
||||||
Open with a custom application
|
Open with a custom application
|
||||||
.It Ic [Insert]
|
.It Ic [Insert], ^I
|
||||||
Toggle navigate-as-you-type mode
|
Toggle navigate-as-you-type mode
|
||||||
.It Ic ~
|
.It Ic ~
|
||||||
Change to the HOME directory
|
Change to the HOME directory
|
||||||
|
|
3
nnn.c
3
nnn.c
|
@ -1144,6 +1144,7 @@ filterentries(char *path)
|
||||||
case CONTROL('G'): // fallthrough
|
case CONTROL('G'): // fallthrough
|
||||||
case CONTROL('X'): // fallthrough
|
case CONTROL('X'): // fallthrough
|
||||||
case CONTROL('F'): // fallthrough
|
case CONTROL('F'): // fallthrough
|
||||||
|
case CONTROL('I'): // fallthrough
|
||||||
case CONTROL('T'):
|
case CONTROL('T'):
|
||||||
if (len == 1)
|
if (len == 1)
|
||||||
cur = oldcur;
|
cur = oldcur;
|
||||||
|
@ -1898,7 +1899,7 @@ show_help(char *path)
|
||||||
"4→, ↵, l, ^M | Open file or enter dir\n"
|
"4→, ↵, l, ^M | Open file or enter dir\n"
|
||||||
"1←, Bksp, h, ^H | Go to parent dir\n"
|
"1←, Bksp, h, ^H | Go to parent dir\n"
|
||||||
"d^O | Open with...\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 HOME\n"
|
||||||
"e& | Go to initial dir\n"
|
"e& | Go to initial dir\n"
|
||||||
"e- | Go to last visited dir\n"
|
"e- | Go to last visited dir\n"
|
||||||
|
|
1
nnn.h
1
nnn.h
|
@ -118,6 +118,7 @@ static struct key bindings[] = {
|
||||||
{ '/', SEL_FLTR, "", "" },
|
{ '/', SEL_FLTR, "", "" },
|
||||||
/* Toggle filter mode */
|
/* Toggle filter mode */
|
||||||
{ KEY_IC, SEL_MFLTR, "", "" },
|
{ KEY_IC, SEL_MFLTR, "", "" },
|
||||||
|
{ CONTROL('I'), SEL_MFLTR, "", "" },
|
||||||
/* Desktop search */
|
/* Desktop search */
|
||||||
{ CONTROL('_'), SEL_SEARCH, "", "" },
|
{ CONTROL('_'), SEL_SEARCH, "", "" },
|
||||||
/* Toggle hide .dot files */
|
/* Toggle hide .dot files */
|
||||||
|
|
Loading…
Reference in a new issue