monsterkodi / color-ls

colorful ls command

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pure alphabetical sorting

acarl005 opened this issue · comments

commented

The output groups directories first. An option to have simple alphabetical sorting (like the native ls command) would be nice.

Hi Andy,
I probably need some more motivation before I implement this.
Can you please give me an example when or why that might be useful?
And how would you call that option?
Thanks in advance,
yours kodi

Well, I can't see that I will ever use this, but it was easily done:
The latest version (1.1.2) has a hidden option --alphabetical or -A to do what you requested.
Let me know if it doesn't work as expected.
But I am still curious: if you convince me that this is really useful, I will unhide the option :-)

Hi Andy, I guess this will remain a hidden option then :-)

And thanks for the star, BTW!

commented

Hi, thanks for the option!

It's what I'm most used to. After using /bin/ls -FGlAhp for so long, my brain most instinctively looks for things alphabetically regardless of whether they are directories or not. It's not more inherently "useful", just the most comfortable. I appreciate it!

You are welcome. Glad you like it.
I can see from your fork that you want it to look and behave exactly like the old ls :-)
Good work, btw.