We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ls already has something like this:
ls
--group-directories-first group directories before files;
Basically what it would do is re-order fd output for displaying directories grouped at the top, before files, example below:
fd
# before a-file b-folder-1 b-folder-2 c-file # after (with -G) b-folder-1 b-folder-2 a-file c-file
The flag for this could be -G, as -g is already being used as the --glob option, and the description on the docs
-G
-g
--glob
The text was updated successfully, but these errors were encountered:
Thank you very much for your contribution!
This is similar to a --sort option that we decided not to implement for various reasons (see #324, for example). What you can do is to pipe to ls -G:
--sort
ls -G
fd … -X ls -lhd --color=always --group-directories-first
Sorry, something went wrong.
Many thanks @sharkdp, it worked!
No branches or pull requests
ls
already has something like this:Basically what it would do is re-order
fd
output for displaying directories grouped at the top, before files, example below:The text was updated successfully, but these errors were encountered: