]> Sergey Matveev's repositories - nnn.git/commitdiff
Make ^T shortcut for nav-as-you-type.
authorArun Prakash Jana <engineerarun@gmail.com>
Tue, 4 Dec 2018 23:51:22 +0000 (05:21 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Tue, 4 Dec 2018 23:51:22 +0000 (05:21 +0530)
The code for Tab and ^I are same when capture din getch().

src/nnn.h

index aeccd4f59bd81542799e2927639cfffbe08d9ae5..2b34e8f105271fe75b270058f882842422283901 100644 (file)
--- a/src/nnn.h
+++ b/src/nnn.h
@@ -145,7 +145,6 @@ static struct key bindings[] = {
        { '`',            SEL_LEADER },
        /* Cycle contexts in forward direction */
        { '\t',           SEL_CYCLE },
-       { CONTROL('T'),   SEL_CYCLE },
        /* Mark a path to visit later */
        { 'b',            SEL_PIN },
        /* Visit marked directory */
@@ -154,7 +153,7 @@ static struct key bindings[] = {
        { '/',            SEL_FLTR },
        /* Toggle filter mode */
        { KEY_IC,         SEL_MFLTR },
-       { CONTROL('I'),   SEL_MFLTR },
+       { CONTROL('T'),   SEL_MFLTR },
        /* Toggle hide .dot files */
        { '.',            SEL_TOGGLEDOT },
        /* Detailed listing */