Fix docs, allow / to enable filter inside bookmarks

This commit is contained in:
Arun Prakash Jana 2022-06-14 17:36:17 +05:30
parent 581e629c20
commit d898d174f5
No known key found for this signature in database
GPG key ID: A75979F35C080412
2 changed files with 4 additions and 4 deletions

2
nnn.1
View file

@ -48,7 +48,7 @@ supports the following options:
auto-setup temporary NNN_FIFO (described in ENVIRONMENT section) auto-setup temporary NNN_FIFO (described in ENVIRONMENT section)
.Pp .Pp
.Fl A .Fl A
disable directory auto-enter in type-to-nav mode disable directory auto-enter on unique filter match
.Pp .Pp
.Fl "b key" .Fl "b key"
specify bookmark key to open specify bookmark key to open

View file

@ -7143,10 +7143,10 @@ nochange:
goto nochange; goto nochange;
} }
if (strcmp(path, newpath) == 0)
break;
if (g_state.selbm == 1) /* Allow filtering in bookmarks directory */ if (g_state.selbm == 1) /* Allow filtering in bookmarks directory */
presel = FILTER; presel = FILTER;
if (strcmp(path, newpath) == 0)
break;
} }
/* In list mode, retain the last file name to highlight it, if possible */ /* In list mode, retain the last file name to highlight it, if possible */
@ -8163,7 +8163,7 @@ static void usage(void)
#ifndef NOFIFO #ifndef NOFIFO
" -a auto NNN_FIFO\n" " -a auto NNN_FIFO\n"
#endif #endif
" -A disable dir auto-enter\n" " -A no dir auto-enter during filter\n"
" -b key open bookmark key (trumps -s/S)\n" " -b key open bookmark key (trumps -s/S)\n"
" -c cli-only NNN_OPENER (trumps -e)\n" " -c cli-only NNN_OPENER (trumps -e)\n"
" -C 8-color scheme\n" " -C 8-color scheme\n"