BREAKING CHANGE: The behavior of the `-d` flag has been refined to be more
consistent with `ls`. Its long flag has been changed to `--treat-dirs-as-files`
for clarity, while `--list-dirs` is retained as a backward-compatible alias to be
removed in a future release.
Based on the preious commit by cysabi, this commit addresses
inconsistencies and ambiguities related to the `-d` flag and its
long-flag variants.
The behavior of `-d` has been aligned more closely with `ls`, where it
lists directories as regular files rather than listing contents of
directories. The new, more descriptive long flag `--treat-dirs-as-files`
clarifies this intent.
A backward-compatible alias `--list-dirs` is provided to ease the
transition for existing users, with the intention of deprecating it
later.
Since cysabi's fix included addresing `eza -TL 1` not correctly
rendering the tree depth, this also includes tests to ensure that
behavior doesn't regress in the future... again.
Specifically, `powertest` integration tests have been added for `eza
-TL<value>` for levels 0 through 5, ensuring the correct tree structure
output at specified depths. This also includes tests for the updated
`-d`/`--treat-dirs-as-files` behavior.
It is also noted that for users who primarily intend to list only directories,
the `--only-dirs` (`-D`) option might be a more suitable and explicit alternative
to `--treat-dirs-as-files`. This has been added to the man page as well
as a more verbose description of the flag.
Completions have also been fixed.
For example, it will be quite useful to use this feature alongside --tree
as then when printing a deeply nested directory structure, all the files
within each directory will be listed first and then the remaining deeply
nested directory subtree within it will be printed, giving the users a
far better understanding of which files are within each folder.
I believe this feature changed name sometimes during development, but it's still called decay in the description of EZA_MIN_LUMINANCE, which confused me while I read the man page.
Signed-off-by: glow <oli@glow.li>
This is based on a series of commits done by aashirabadb in #526.
This introduces the `--color-scale` flag both for file age and size, as
well as `--color-scale-mode` which allows "fixed" and gradient".
The reason for reapplying from the diff of the PR instead of the patch
is that the commit history was messy, and introduced "breaking changes"
that were only locally breaking to the PR, that is, not the users.
Further, the PR had seemingly gone stale, and the rather long and
complicated commit history interwoven with merges made it seem more
efficient to just work from scratch.
Again, the work here is done by aashirbadb, my contribution is just
ensuring the quality of the code they've written.
Co-authored-by: aashirbadb <aashirbadbhandari@gmail.com>
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
Refs: #486
Updated the man page to include:
- --dereference
- --almost-all
- --help
- --version
Additionally, added the following flags to the CLI --help information:
- --dereference
- --almost-all
Updated shell completions.