lf icon indicating copy to clipboard operation
lf copied to clipboard

setlocal depth/glob specification

Open dcervenkov opened this issue 11 months ago • 0 comments

I find the setlocal syntax has limited utility without more granular globbing - one can only specify a single directory or a single directory and all its subdirectories.

I think if one could specify a max depth, it would be way more useful.

Consider a directory structure like /foo/bar/2024/202403/a. It makes sense to want to reverse the sorting order for the YYYY and YYYYMM levels to land on the newest date by default, but not for the last one. I think general globbing might be too costly, but perhaps something like setlocal [directory] [depth] [reverse/sortby/etc.] should be fast and easy to do.

dcervenkov avatar Mar 22 '24 09:03 dcervenkov