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

[Bug]: --sort name is not a valid option #1121

Open
1 task done
5HT2 opened this issue Mar 5, 2025 · 1 comment
Open
1 task done

[Bug]: --sort name is not a valid option #1121

5HT2 opened this issue Mar 5, 2025 · 1 comment
Assignees

Comments

@5HT2
Copy link

5HT2 commented Mar 5, 2025

Version

  • latest

version

lsd 1.1.5

What OS are you seeing the problem on?

macOS 14.6.1

installation

brew install lsd

term

xterm-256color

ls-colors

No response

What happened?

Ran `lsd --sort name`, no bueno.

What expected?

I expected the option to work as normal.

What else?

Currently, if you specify a default sort in the config, there is no way to revert it back to a name sort on the command-line as the option is not accepted.

Image
@bebyzz
Copy link

bebyzz commented Apr 11, 2025

I tested this and was able to reproduce 'name' as a sort option throws an error.
Image

This looks like expected functionality. If you look at the lsd man page man lsd --sort shows the list of possibles as [possible values: size, time, version, extension, git. 'name' is not in the list of possible values
Image

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

3 participants