Noice is Not Noice, a noicer fork...
+[](http://postimg.org/image/6olicy42f/)
+
### Table of Contents
- [Introduction](#introduction)
Filters support regexes to display only the matched entries in the current directory view. This effectively allows searching through the directory tree for a particular entry.
-Filters do not stack on top of each other. They are applied anew every time. An empty filter expression resets the filter.
+Filters do not stack on top of each other. They are applied anew every time.
+
+An empty filter expression resets the filter.
If nnn is invoked as root the default filter will also match hidden files.
}
static void
-spawn(char *file, char *arg, char *dir)
+spawn(char *file, char *arg, char *dir, int notify)
{
pid_t pid;
int status;
if (pid == 0) {
if (dir != NULL)
status = chdir(dir);
- fprintf(stdout, "\n +-++-++-+\n | n n n |\n +-++-++-+\n\n");
+ if (notify)
+ fprintf(stdout, "\n +-++-++-+\n | n n n |\n +-++-++-+\n\n");
execlp(file, file, arg, NULL);
_exit(1);
} else {
}
}
exitcurses();
- spawn(bin, newpath, NULL);
+ spawn(bin, newpath, NULL, 1);
initcurses();
continue;
}
else
snprintf(abspath, PATH_MAX, "%s/%s",
path, dents[cur].name);
- spawn(copier, abspath, NULL);
+ spawn(copier, abspath, NULL, 0);
printmsg(abspath);
} else if (!copier)
printmsg("NNN_COPIER is not set");
case SEL_RUN:
run = xgetenv(env, run);
exitcurses();
- spawn(run, NULL, path);
+ spawn(run, NULL, path, 0);
initcurses();
/* Re-populate as directory content may have changed */
goto begin;
case SEL_RUNARG:
run = xgetenv(env, run);
exitcurses();
- spawn(run, dents[cur].name, path);
+ spawn(run, dents[cur].name, path, 0);
initcurses();
break;
}
if (idletimeout != 0 && idle == idletimeout) {
idle = 0;
exitcurses();
- spawn(idlecmd, NULL, NULL);
+ spawn(idlecmd, NULL, NULL, 0);
initcurses();
}
}