mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Simplify default regexes
This commit is contained in:
parent
b78755bb01
commit
3f1a93a598
|
@ -8,7 +8,7 @@ struct assoc assocs[] = {
|
||||||
{ "\\.(html|svg)$", "firefox" },
|
{ "\\.(html|svg)$", "firefox" },
|
||||||
{ "\\.pdf$", "mupdf" },
|
{ "\\.pdf$", "mupdf" },
|
||||||
{ "\\.sh$", "sh" },
|
{ "\\.sh$", "sh" },
|
||||||
{ ".*", "less" },
|
{ ".", "less" },
|
||||||
};
|
};
|
||||||
|
|
||||||
struct key bindings[] = {
|
struct key bindings[] = {
|
||||||
|
|
4
noice.c
4
noice.c
|
@ -758,9 +758,9 @@ main(int argc, char *argv[])
|
||||||
char *ifilter;
|
char *ifilter;
|
||||||
|
|
||||||
if (getuid() == 0)
|
if (getuid() == 0)
|
||||||
ifilter = ".*";
|
ifilter = ".";
|
||||||
else
|
else
|
||||||
ifilter = "^[^.].*"; /* Hide dotfiles */
|
ifilter = "^[^.]"; /* Hide dotfiles */
|
||||||
|
|
||||||
if (argv[1] != NULL) {
|
if (argv[1] != NULL) {
|
||||||
ipath = argv[1];
|
ipath = argv[1];
|
||||||
|
|
Loading…
Reference in a new issue