Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setlocal depth/glob specification #1656

Open
dcervenkov opened this issue Mar 22, 2024 · 0 comments
Open

setlocal depth/glob specification #1656

dcervenkov opened this issue Mar 22, 2024 · 0 comments

Comments

@dcervenkov
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant