Taking hidden files parameter into account in windows (#1684)

* taking hidden files parameter into account

* Updated doc and removed irelevant linter comment

* fixed doc

* fixed doc again

* Defaulted to empty string on windows
This commit is contained in:
Catalin Ancutei authored and GitHub committed 2024-06-17 19:03:29 +10:00
1 parent 2d3cc97f78
commit 791341990c
5 files changed
+30 -14

No files matched your search

+3 -3
View File
@@ -158,7 +158,7 @@ The following options can be used to customize the behavior of lf:
globfilter bool (default false)
globsearch bool (default false)
hidden bool (default false)
hiddenfiles []string (default '.*')
hiddenfiles []string (default '.*' for Unix and '' for Windows)
hidecursorinactive bool (default false)
history bool (default true)
icons bool (default false)
@@ -765,9 +765,9 @@ Otherwise, these characters are interpreted as they are.
Show hidden files.
On Unix systems, hidden files are determined by the value of `hiddenfiles`.
On Windows, only files with hidden attributes are considered hidden files.
On Windows, files with hidden attributes are also considered hidden files.
## hiddenfiles ([]string) (default `.*`)
## hiddenfiles ([]string) (default `.*` for Unix and `` for Windows)
List of hidden file glob patterns.
Patterns can be given as relative or absolute paths.