Make ^T shortcut for nav-as-you-type.

The code for Tab and ^I are same when capture din getch().
This commit is contained in:
Arun Prakash Jana 2018-12-05 05:21:22 +05:30
parent 7ae6e481bc
commit e26c21ce0b
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -145,7 +145,6 @@ static struct key bindings[] = {
{ '`', SEL_LEADER }, { '`', SEL_LEADER },
/* Cycle contexts in forward direction */ /* Cycle contexts in forward direction */
{ '\t', SEL_CYCLE }, { '\t', SEL_CYCLE },
{ CONTROL('T'), SEL_CYCLE },
/* Mark a path to visit later */ /* Mark a path to visit later */
{ 'b', SEL_PIN }, { 'b', SEL_PIN },
/* Visit marked directory */ /* Visit marked directory */
@ -154,7 +153,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 }, { CONTROL('T'), SEL_MFLTR },
/* Toggle hide .dot files */ /* Toggle hide .dot files */
{ '.', SEL_TOGGLEDOT }, { '.', SEL_TOGGLEDOT },
/* Detailed listing */ /* Detailed listing */