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

Don't list directories first #93

Closed
adzenith opened this issue Jan 12, 2019 · 2 comments
Closed

Don't list directories first #93

adzenith opened this issue Jan 12, 2019 · 2 comments
Labels
kind/enhancement Enhancement on current feature

Comments

@adzenith
Copy link

It would be great if there were an option to not put the directories first. The current default behavior is different than the behavior of ls, which makes it kind of confusing. We have these fancy icons and colors so it's already easy to tell which items are directories!

Current behavior:

drwxr-xr-x  user  group      -   Tue Dec  4 20:27:57 2018    Afolder
drwxr-xr-x  user  group      -   Tue Dec  4 20:27:51 2018    Bfolder
drwxr-xr-x  user  group      -   Fri Jan 11 19:47:11 2019    Zfolder
.rw-r--r--  user  group    6 KB  Fri Jan 11 18:56:06 2019    Afile
.rw-r--r--  user  group   97 B   Sat Nov  4 18:14:08 2017    Bfile
.rw-r--r--  user  group   88 B   Sat Nov  4 18:14:13 2017    Zfile

desired behavior:

.rw-r--r--  user  group    6 KB  Fri Jan 11 18:56:06 2019    Afile
drwxr-xr-x  user  group      -   Tue Dec  4 20:27:57 2018    Afolder
.rw-r--r--  user  group   97 B   Sat Nov  4 18:14:08 2017    Bfile
drwxr-xr-x  user  group      -   Tue Dec  4 20:27:51 2018    Bfolder
.rw-r--r--  user  group   88 B   Sat Nov  4 18:14:13 2017    Zfile
drwxr-xr-x  user  group      -   Fri Jan 11 19:47:11 2019    Zfolder
@adzenith adzenith added the kind/bug Something isn't working label Jan 12, 2019
@Peltoche Peltoche added kind/enhancement Enhancement on current feature and removed kind/bug Something isn't working labels Jan 12, 2019
@Peltoche
Copy link
Collaborator

Hi @adzenith,

I'm agree that it could be nice to add this option in order to let the users choose. I think that a possible solution would be to make the option as following:

--directory <order>...      Where the directories will be ordered [default: unordered]  [possible values: first, unordered, last]

What do you think of it?

@adzenith
Copy link
Author

Thanks! That looks perfect!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Enhancement on current feature
Projects
None yet
Development

No branches or pull requests

2 participants