Commit graph

109 commits

Author SHA1 Message Date
Christina Sørensen
7f081337bd feat!: define -d/--treat-dirs-as-files behavior, tests
Some checks are pending
Unit tests / security_audit (push) Waiting to run
Unit tests / check_if_pr (push) Waiting to run
Unit tests / no-merge-commits (push) Blocked by required conditions
Unit tests / Conventional Commits (push) Blocked by required conditions
Unit tests / unit-tests (macos-latest, beta) (push) Blocked by required conditions
Unit tests / unit-tests (macos-latest, msrv) (push) Blocked by required conditions
Unit tests / unit-tests (macos-latest, nightly) (push) Blocked by required conditions
Unit tests / unit-tests (macos-latest, stable) (push) Blocked by required conditions
Unit tests / unit-tests (ubuntu-latest, beta) (push) Blocked by required conditions
Unit tests / unit-tests (ubuntu-latest, msrv) (push) Blocked by required conditions
Unit tests / unit-tests (ubuntu-latest, nightly) (push) Blocked by required conditions
Unit tests / unit-tests (ubuntu-latest, stable) (push) Blocked by required conditions
Unit tests / unit-tests (windows-latest, beta) (push) Blocked by required conditions
Unit tests / unit-tests (windows-latest, msrv) (push) Blocked by required conditions
Unit tests / unit-tests (windows-latest, nightly) (push) Blocked by required conditions
Unit tests / unit-tests (windows-latest, stable) (push) Blocked by required conditions
Unit tests / unit-tests-freebsd (beta) (push) Blocked by required conditions
Unit tests / unit-tests-freebsd (msrv) (push) Blocked by required conditions
Unit tests / unit-tests-freebsd (nightly) (push) Blocked by required conditions
Unit tests / unit-tests-freebsd (stable) (push) Blocked by required conditions
Unit tests / unit-tests-netbsd (beta) (push) Blocked by required conditions
Unit tests / unit-tests-netbsd (msrv) (push) Blocked by required conditions
Unit tests / unit-tests-netbsd (nightly) (push) Blocked by required conditions
Unit tests / unit-tests-netbsd (stable) (push) Blocked by required conditions
Unit tests / unit-tests-openbsd (push) Blocked by required conditions
Unit tests / Check Nix Flake (push) Blocked by required conditions
Unit tests / Build Nix package (push) Blocked by required conditions
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.
2025-06-30 19:34:33 +02:00
kobayashi
4a779e8d82
docs(man): add missing --absolute option to man page 2025-06-26 08:26:04 +02:00
Jagoda Estera Ślązak
049ebb952f docs(man): more precise temp files color description 2025-03-13 06:17:05 +01:00
Jo Liss
4cd3af816e fix: remove stray description (originally from --decay-mode)
Fixes: #1255
2024-12-16 18:18:23 +01:00
Erwin van Eijk
e978b3efe9 feat: show directories last
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.
2024-10-03 07:43:40 +02:00
Christopher Hicks
13554fa522 docs(man): document that exit 13 == permission denied 2024-10-03 07:08:20 +02:00
Stephen Huan
41ac88b81c docs(man): update file type colors 2024-09-29 05:22:49 +02:00
Stephen Huan
b586dce0c3 docs(man): fix cross-references 2024-09-29 05:22:49 +02:00
Ihar Hrachyshka
da5d198910 feat: Add --follow-symlinks option
The option enables drilling down into symbolic links that point to
directories.
2024-09-29 05:22:28 +02:00
PThorpe92
4151568c47 docs: add further documentation about theme file 2024-08-31 17:36:44 +02:00
Sandro-Alessio Gierens
17982a89ab style(output): fix clippy issue in FileName.paint
Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
2024-08-30 15:49:30 +02:00
PThorpe92
8715840d3a feat: theme file configuration base 2024-08-30 15:49:30 +02:00
PThorpe92
0b34b758b3 feat: allow writing default theme.yml file for eventual config file implementation 2024-08-30 15:49:30 +02:00
Sandro-Alessio Gierens
0d51ff4488 docs(man): add ic for icon color to colors man page
Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
2024-08-29 17:58:15 +02:00
PThorpe92
99b2fc214e feat: add --no-|show-symlinks flags for filtering output 2024-06-24 06:49:02 +02:00
glow
feff970d3c docs(man): replace decay with color-scale
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>
2024-05-16 15:55:09 +02:00
Guillermo Perez
367ff558a6 feat(flags)!: add --classify=always,auto,never
BREAKING CHANGE:
--classify now accepts WHEN (always,auto,never). When none specified defaults to "auto" instead of previous "always" behavior
2024-01-28 09:37:19 +01:00
SPQV MF
baca71751a docs: modify documentation about custom time style 2023-12-12 09:41:23 +01:00
Robert Minsk
66d16a9c9a feat(flags): Add Windows file attributes 2023-12-12 08:59:31 +01:00
Robert Minsk
458a6f5b1e feat(flags): Add BSD file flags 2023-12-12 08:59:31 +01:00
PThorpe92
c6eab635b9 fix: lifetime annotations and manpage/shell completion nits 2023-11-22 16:42:10 +01:00
MartinFillon
0889f23919 feat(input): adding piping of args
fix: lifetime issue
fix: try to fix lifetime issues for pipe from stdin
2023-11-22 16:42:10 +01:00
MartinFillon
cf0c57d7ad docs(total-size): added the fact that total-size is unix only 2023-11-13 18:02:07 +01:00
Steven Ward
1343ff72f6 fix(docs): move --smart-group to long view options
`--smart-group` is only applicable if `--group` is given.
Move its description to be after `--group` in the LONG VIEW OPTIONS
section.
2023-11-12 08:31:11 +01:00
Christina Sørensen
288696db10 feat: add --color-scale
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
2023-11-08 19:45:52 +01:00
Ryan Breaker
02441e5d81
feat: create EZA_ICONS_AUTO environment variable 2023-11-03 10:57:47 -05:00
Ryan Breaker
16f758c593
feat: create EZA_ICONS_AUTO environment variable 2023-11-02 21:28:08 -05:00
xempt
7b1e8979ec Merge branch 'main' of https://github.com/eza-community/eza into feature/add-recursive-dir-size 2023-10-20 13:07:27 -07:00
xempt
5556563d4c fix(flags): changed flag name 2023-10-20 12:46:05 -07:00
Christina Sørensen
32567d0c46
Merge pull request #540 from cfxegbert/cfxegbert-more-icons
Add new filetype for source code files and icons
2023-10-20 06:40:11 +00:00
Robert Minsk
5f4e8ac3bf feat: Add a new filetype for source code files 2023-10-18 01:27:40 -07:00
xempt
cf6c4b2768 docs(man): added flag to man 2023-10-16 10:06:48 -07:00
PThorpe92
7753b24422
feat: fix auto value for colors and icons + documentation 2023-10-16 09:47:37 -04:00
Rami Chasygov
39b6c530f2 feat: add completions, man for --smart-group 2023-10-14 12:28:12 +03:00
MartinFillon
7100943fc8
Merge branch 'main' into add-env-var-to-override-git 2023-10-10 23:27:51 +02:00
Martin Fillon
bad3f1a615
feat(git): adding the EZA_OVERRIDE_GIT env var
This var will override any --git or --git-repos
2023-10-10 23:27:37 +02:00
Chris Gorski
27a014ae96 docs: Add missing options to man page and CLI --help info
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.
2023-10-10 12:47:10 -04:00
dundargoc
9301328091 docs: fix typos 2023-10-02 14:27:36 +02:00
Christina Sørensen
6e9d53f320
Merge pull request #438 from hehelego/main
fix: query stdout terminal size to see if the output gose to a tty.
2023-10-02 13:04:38 +02:00
Martin Fillon
fedef4a55d docs(eza_colors): updated man to add new colors 2023-10-02 11:20:28 +02:00
Christina Sørensen
2909853b08
Merge pull request #437 from Hulxv/custom-time-style
feat: supporting custom time-style
2023-10-02 10:27:54 +02:00
hehelego
cf45b3e4b0
docs: description of --color in README, manpage, and completions 2023-09-28 14:49:13 -05:00
Martin Fillon
413d0c7191 docs(man_eza_colors): added the new colors option to the man 2023-09-28 11:13:31 +02:00
Hulxv
1ebe70a93b docs: documenting custom time-style 2023-09-28 04:44:24 +03:00
Sandro-Alessio Gierens
f49c983012 feat(man): add header to colors-explanation page
Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
2023-09-27 23:52:55 +02:00
Sandro-Alessio Gierens
d73daed717 feat(man): replace hardcoded version by version variable
Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
2023-09-27 23:52:52 +02:00
PThorpe92
7fe28d7eb5
docs: add completions + manpage for --no-quotes flag 2023-09-26 11:51:13 -04:00
Christina Sørensen
c5b544c5ae
Merge pull request #381 from Hulxv/listing-files-only
feat: Listing files only
2023-09-23 18:46:56 +02:00
Mohamed Emad
34ae54ba93
docs: documenting --only-files 2023-09-20 17:40:31 +03:00
Christina Sørensen
6ee896f96d
Merge branch 'main' into missing_styles
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-09-20 05:39:18 +02:00