add 'setlocal' for directory specific options (#1381)

* add 'setlocal' for option 'sortby'

* save each local option separately

* add 'setlocal' for option 'reverse'

* add 'setlocal' for option 'dirfirst'

* add 'setlocal' for option 'hidden'

* add 'setlocal' for option 'dironly'

* add 'setlocal' for option 'info'

* add boolean toggling for 'setlocal' options

* check if the path is absolute for 'setlocal'

* add 'setlocal' options to completion

* add tests for 'setlocal'

* add 'setlocal' to the documentation

* use trailing '/' in 'setlocal' for subdir matching

* cleanup

* add 'setlocal' subdirs to the documentation
This commit is contained in:
Gökçehan Kara authored and GitHub committed 2023-09-02 22:22:56 +03:00
1 parent 990cea7e04
commit 8d013c9375
10 files changed
+486 -31

No files matched your search

+1 -1
View File
@@ -290,7 +290,7 @@ func infotimefmt(t time.Time) string {
func fileInfo(f *file, d *dir) string {
var info string
for _, s := range gOpts.info {
for _, s := range getInfo(d.path) {
switch s {
case "size":
if !(f.IsDir() && gOpts.dircounts) {