Skip to content

Commit

Permalink
Fix docs, allow / to enable filter inside bookmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
jarun committed Jun 14, 2022
1 parent 581e629 commit d898d17
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion nnn.1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/nnn.c
Original file line number Diff line number Diff line change
Expand Up @@ -7143,10 +7143,10 @@ static bool browse(char *ipath, const char *session, int pkey)
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 */
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit d898d17

Please sign in to comment.