lsd-rs / lsd

The next gen ls command
Apache License 2.0
12.85k stars 420 forks source link

[Feature]: Ability to negate boolean options on the command-line #995

Open SpaceshipOperations opened 4 months ago

SpaceshipOperations commented 4 months ago

Version

version

lsd 1.0.0

What OS are you seeing the problem on?

Linux

installation

pacman -S lsd

term

xterm-kitty

ls-colors

`` (empty)

What happened?

It's cool to be able to use header: true in the config. However, this denies me the ability to have lsd list files without a header.

What expected?

It would be great to be able to negate the --header option, and ideally all other boolean options (if it makes sense at least).

What else?

A mere suggestion, but I think a simple and consistent formula would be best. Wherever applicable, each boolean long option would have a negative version prefixed with no- (e.g. --header--no-header), and each boolean short option can be negated by prefixing it with a plus. lsd -llsd +l.