add hiddenFiles option (#372)

* add hiddenFiles option

* harden and improve syntax

* refactor name and add to docs
This commit is contained in:
Adam Abrams authored and GitHub committed 2020-06-11 02:52:15 +03:00
1 parent 8933a3eafe
commit 72facea2a0
7 files changed
+43 -7

No files matched your search

+2
View File
@@ -58,6 +58,7 @@ var gOpts struct {
ratios []int
info []string
shellopts []string
hiddenfiles []string
keys map[string]expr
cmdkeys map[string]expr
cmds map[string]expr
@@ -95,6 +96,7 @@ func init() {
gOpts.ratios = []int{1, 2, 3}
gOpts.info = nil
gOpts.shellopts = nil
gOpts.hiddenfiles = []string{".*"}
gOpts.sortType = sortType{naturalSort, dirfirstSort}
gOpts.keys = make(map[string]expr)