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

Can the sort order match ls? #9

Closed
scopatz opened this issue Sep 10, 2020 · 4 comments
Closed

Can the sort order match ls? #9

scopatz opened this issue Sep 10, 2020 · 4 comments

Comments

@scopatz
Copy link
Contributor

scopatz commented Sep 10, 2020

Right now all directories are listed before regular files. Is it possible to enable everything to be sorted alphabetically or lexicographically? Thanks!

@cafehaine
Copy link
Owner

I chose this since I'm way too used to file explorers, but it makes sense.

I guess we could use another environment variable for this, with choices such as "alphabetical", "directories first", "by date", "by size", and maybe command line argument to override the behavior ?

@cafehaine
Copy link
Owner

@scopatz the last commit should cover your needs, let me know if anything's missing!

I've updated the README to indicate how to customize the sorting order.

I'll have to create a new release on pypi at some point, maybe next week.

@scopatz
Copy link
Contributor Author

scopatz commented Sep 12, 2020

Excellent! Yeah this should work. I'll wait for the next release!

@scopatz
Copy link
Contributor Author

scopatz commented Sep 12, 2020

Thanks a ton!

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

2 participants