cafehaine / xontrib-xlsd

xontrib-xlsd is the next gen ls command for xonsh shell, inspired by lsd.
GNU General Public License v3.0
21 stars 4 forks source link

Can the sort order match ls? #9

Closed scopatz closed 3 years ago

scopatz commented 3 years ago

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

cafehaine commented 3 years ago

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 commented 3 years ago

@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 commented 3 years ago

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

scopatz commented 3 years ago

Thanks a ton!