]> Sergey Matveev's repositories - nnn.git/commitdiff
Fix docs, allow `/` to enable filter inside bookmarks
authorArun Prakash Jana <engineerarun@gmail.com>
Tue, 14 Jun 2022 12:06:17 +0000 (17:36 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Tue, 14 Jun 2022 12:06:17 +0000 (17:36 +0530)
nnn.1
src/nnn.c

diff --git a/nnn.1 b/nnn.1
index 6e7915bfa35936bd32a3190dd5d3e2d4ed8e4e1a..9a9b37a4f98880733c263f549de59b58f482065c 100644 (file)
--- a/nnn.1
+++ b/nnn.1
@@ -48,7 +48,7 @@ supports the following options:
         auto-setup temporary NNN_FIFO (described in ENVIRONMENT section)
 .Pp
 .Fl A
-        disable directory auto-enter in type-to-nav mode
+        disable directory auto-enter on unique filter match
 .Pp
 .Fl "b key"
         specify bookmark key to open
index 6dfcb7774d320399e03223c832806eede80e906f..eb7d6e59bbcd97eba3c86da673ec08f7c58f349b 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -7143,10 +7143,10 @@ nochange:
                                        goto nochange;
                                }
 
-                               if (strcmp(path, newpath) == 0)
-                                       break;
                                if (g_state.selbm == 1) /* Allow filtering in bookmarks directory */
                                        presel = FILTER;
+                               if (strcmp(path, newpath) == 0)
+                                       break;
                        }
 
                        /* In list mode, retain the last file name to highlight it, if possible */
@@ -8163,7 +8163,7 @@ static void usage(void)
 #ifndef NOFIFO
                " -a      auto NNN_FIFO\n"
 #endif
-               " -A      disable dir auto-enter\n"
+               " -A      no dir auto-enter during filter\n"
                " -b key  open bookmark key (trumps -s/S)\n"
                " -c      cli-only NNN_OPENER (trumps -e)\n"
                " -C      8-color scheme\n"