Simplify default regexes

This commit is contained in:
lostd 2014-11-25 17:20:06 +02:00
parent b78755bb01
commit 3f1a93a598
2 changed files with 3 additions and 3 deletions

View file

@ -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[] = {

View file

@ -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];