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

request: set file ordering like ls #387

Closed
noib3 opened this issue Jun 17, 2020 · 3 comments · Fixed by #1670
Closed

request: set file ordering like ls #387

noib3 opened this issue Jun 17, 2020 · 3 comments · Fixed by #1670

Comments

@noib3
Copy link

noib3 commented Jun 17, 2020

Basically title. I know we can set the file ordering as natural, based on file extensions, time, etc., but I'd be nice to have an option to mimic the ordering of ls, which can be customized in various ways.

@gokcehan
Copy link
Owner

@n0ibe Can you be more specific? Which options of ls are you looking for?

@noib3
Copy link
Author

noib3 commented Jun 18, 2020

Two options really (I'm using set sortby ext):

  1. hidden directories should be listed before visible directories. It already works for regular files, i.e. .a.txt is listed before a.txt, but .a is listed after a (where both .a and a are directories). I'd be nice to have consistent ordering across all filetypes;

  2. sort uppercase before lowercase, i.e. A then B then a then b.

@gokcehan
Copy link
Owner

Second point also mentioned in #320.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants