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

feat: add --group-files-first or --group-directories-last #872

Open
20manas opened this issue Mar 2, 2024 · 2 comments · May be fixed by #892
Open

feat: add --group-files-first or --group-directories-last #872

20manas opened this issue Mar 2, 2024 · 2 comments · May be fixed by #892
Labels
good first issue Good for newcomers

Comments

@20manas
Copy link

20manas commented Mar 2, 2024

Currently, there is an option to show all the directories before all the files using --group-directories-first. However, it is often useful to do the reverse, i.e., show all the files before all the directories.

For example, it will be quite useful to use this feature alongside --tree as then when printing a deeply nested directory structure, all the files within each directory will be listed first and then the remaining deeply nested directory subtree within it will be printed, giving the users a far better understanding of which files are within each folder.

@cafkafk
Copy link
Member

cafkafk commented Mar 3, 2024

This does actually sound super useful, hope someone pick this up, we'd gladly accept a pr for this.

@cafkafk cafkafk added the good first issue Good for newcomers label Mar 3, 2024
@erwinvaneijk
Copy link
Contributor

Useful, I'm working on it.

@erwinvaneijk erwinvaneijk linked a pull request Mar 11, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants