- By file name, modification/access time, size, extension
- Search
- Instant filtering with *search-as-you-type*
- - Regex and substring match
+ - Regex (default) and substring match
- Subtree search to open or edit files (using plugin)
- Mimes
- Open with desktop opener or specify a custom app
(1) To list all matches starting with the filter expression, start the expression
with a '^' (caret) symbol.
.br
-(2) Type '^.*\\.mkv' to list all MKV files.
+(2) Type '\\.mkv' to list all MKV files.
.br
(3) Use '.*' to match any character (\fIsort of\fR fuzzy search).
.Pp
static int setfilter(regex_t *regex, const char *filter)
{
- int r = regcomp(regex, filter, REG_NOSUB | REG_EXTENDED | REG_ICASE);
-
- if (r != 0 && filter && filter[0] != '\0')
- mvprintw(xlines - 1, 0, "regex error: %d\n", r);
-
- return r;
+ return regcomp(regex, filter, REG_NOSUB | REG_EXTENDED | REG_ICASE);
}
static int visible_re(const fltrexp_t *fltrexp, const char *fname)
*/
/* ndents = total; */
- if (matches(pln) == -1)
+ if (matches(pln) == -1) {
+ printprompt(ln);
continue;
+ }
/* If the only match is a dir, auto-select and cd into it */
if (ndents == 1 && cfg.filtermode