Commit graph

1618 commits

Author SHA1 Message Date
Tox
3dea300d50 feat(icons): use CHANGES icon for CHANGELOG as well 2025-07-18 15:57:18 +02:00
Tox
2b690d5f87 feat(icons): add icons for changelog and todo files
Icons exist for README, SECURITY, and CoC files. I feel they should also
exist for the changelog and todo files commonly seen in software
sources.

NEWS, NEWS.md, CHANGES, CHANGES.md => 
TODO, TODO.md => 

Let me know if alternate icons would be preferred. Thanks!
2025-07-18 15:57:18 +02:00
Helmut K. C. Tessarek
c015350363 fix: stdin behavior
The issue is that eza ignores the `--stdin` argument, unless there is
data piped into it. This is not how stdin behavior is supposed to work.
e.g. look at the `cat` command.
The flag should tell eza that the input is read from stdin. But if you
call `eza --stdin` nothing is read from stdin.

This means that the current argument is moot and serves no purpose,
because eza already has the capability of checking whether data is
piped into it.
So eza behaves like this: if you pipe data into eza, eza will ignore
the data, unless you additionally specify `--stdin`
This makes no sense.

This change accomplishes the following:

- `eza --stdin` reads from standard input
- if data is piped into eza, standard input is automatically read
  and no `--stdin` flag is required
- if data is piped into eza, `--stdin` can still be used

BREAKING CHANGE: if data is piped into eza, eza will not ignore it
2025-07-18 15:54:53 +02:00
Christina Sørensen
7746830180 fix(view)!: make --grid work when not in TTY
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
When output is not a TTY (e.g. when piped), fix grid view instead of
outputting oneline view.

BREAKING CHANGE: When using --grid, the output for non-TTY is now the
grid view as well, breaking scripts that may have erroniously used
--grid.

Fixes #1545
2025-07-17 23:11:59 +02:00
Christina Sørensen
a64a9dafbc feat(icons): refresh icon set with new glyphs and additions
Some checks failed
Unit tests / security_audit (push) Has been cancelled
Unit tests / check_if_pr (push) Has been cancelled
Unit tests / Check Nix Flake (push) Has been cancelled
Unit tests / Build Nix package (push) Has been cancelled
Unit tests / no-merge-commits (push) Has been cancelled
Unit tests / Conventional Commits (push) Has been cancelled
Unit tests / unit-tests (macos-latest, beta) (push) Has been cancelled
Unit tests / unit-tests (macos-latest, msrv) (push) Has been cancelled
Unit tests / unit-tests (macos-latest, nightly) (push) Has been cancelled
Unit tests / unit-tests (macos-latest, stable) (push) Has been cancelled
Unit tests / unit-tests (ubuntu-latest, beta) (push) Has been cancelled
Unit tests / unit-tests (ubuntu-latest, msrv) (push) Has been cancelled
Unit tests / unit-tests (ubuntu-latest, nightly) (push) Has been cancelled
Unit tests / unit-tests (ubuntu-latest, stable) (push) Has been cancelled
Unit tests / unit-tests (windows-latest, beta) (push) Has been cancelled
Unit tests / unit-tests (windows-latest, msrv) (push) Has been cancelled
Unit tests / unit-tests (windows-latest, nightly) (push) Has been cancelled
Unit tests / unit-tests (windows-latest, stable) (push) Has been cancelled
Unit tests / unit-tests-freebsd (beta) (push) Has been cancelled
Unit tests / unit-tests-freebsd (msrv) (push) Has been cancelled
Unit tests / unit-tests-freebsd (nightly) (push) Has been cancelled
Unit tests / unit-tests-freebsd (stable) (push) Has been cancelled
Unit tests / unit-tests-openbsd (push) Has been cancelled
Unit tests / unit-tests-netbsd (beta) (push) Has been cancelled
Unit tests / unit-tests-netbsd (msrv) (push) Has been cancelled
Unit tests / unit-tests-netbsd (nightly) (push) Has been cancelled
Unit tests / unit-tests-netbsd (stable) (push) Has been cancelled
Updated glyphs for:
- CONFIG ( -> 󱁻)
- GIT ( -> 󰊢)
- Default file icon ( -> 󰡯)

Added new icons and mappings:
- FOLDER_BUILD (󱧼) for `build` directory
- TCL (󰛓) for `.tbc`, `.tcl` extensions
- XORG () for Xorg config files
- Documents directory (󰲂)
- src directory (󰣞)
- opam extension (󰘧)

Removed `tape` extension icon.

Co-authored-by: brijesh <brijeshkrishnaga@gmail.com>
2025-07-06 10:47:55 +02:00
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
unknown
2864323c53 fix: replace default_input_path check with "." check
Co-authored-by: cysabi <47790183+cysabi@users.noreply.github.com>
2025-06-30 19:34:33 +02:00
Justin Su
3cc1e33fd7
feat: add prettier icon for .prettierrc.{json,json5,toml,yaml,yml}
Signed-off-by: Justin Su <injustsu@gmail.com>
2025-06-26 08:26:04 +02:00
Sandro-Alessio Gierens
102de14496 style(main): remove unnecessary semicolon
Some checks failed
Unit tests / no-merge-commits (push) Has been cancelled
Unit tests / unit-tests (windows-latest, beta) (push) Has been cancelled
Unit tests / unit-tests (windows-latest, msrv) (push) Has been cancelled
Unit tests / unit-tests (windows-latest, nightly) (push) Has been cancelled
Unit tests / unit-tests (windows-latest, stable) (push) Has been cancelled
Unit tests / unit-tests-freebsd (beta) (push) Has been cancelled
Unit tests / unit-tests-freebsd (msrv) (push) Has been cancelled
Unit tests / unit-tests-freebsd (nightly) (push) Has been cancelled
Unit tests / unit-tests-freebsd (stable) (push) Has been cancelled
Unit tests / unit-tests-netbsd (beta) (push) Has been cancelled
Unit tests / unit-tests-netbsd (msrv) (push) Has been cancelled
Unit tests / unit-tests-netbsd (nightly) (push) Has been cancelled
Unit tests / unit-tests-netbsd (stable) (push) Has been cancelled
Unit tests / unit-tests-openbsd (push) Has been cancelled
Unit tests / security_audit (push) Has been cancelled
Unit tests / check_if_pr (push) Has been cancelled
Unit tests / Check Nix Flake (push) Has been cancelled
Unit tests / Build Nix package (push) Has been cancelled
Unit tests / Conventional Commits (push) Has been cancelled
Unit tests / unit-tests (macos-latest, beta) (push) Has been cancelled
Unit tests / unit-tests (macos-latest, msrv) (push) Has been cancelled
Unit tests / unit-tests (macos-latest, nightly) (push) Has been cancelled
Unit tests / unit-tests (macos-latest, stable) (push) Has been cancelled
Unit tests / unit-tests (ubuntu-latest, beta) (push) Has been cancelled
Unit tests / unit-tests (ubuntu-latest, msrv) (push) Has been cancelled
Unit tests / unit-tests (ubuntu-latest, nightly) (push) Has been cancelled
Unit tests / unit-tests (ubuntu-latest, stable) (push) Has been cancelled
This is necessary to please OpenBSD's clippy version.

Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
2025-06-14 01:37:31 +02:00
ariasuni
a602161cba fix: missing word in comment
Signed-off-by: ariasuni <aria@ariasuni.eu>
2025-06-14 01:37:31 +02:00
Samuel Onoja
52cdb3788d fix: clippy warnings 2025-06-14 01:37:31 +02:00
Samuel Onoja
e577b75d00 fix: unreadables format style 2025-06-14 01:37:31 +02:00
Samuel Onoja
57ec57f93a fix: impl desirable behaviour for unreadables 2025-06-14 01:37:31 +02:00
Samuel Onoja
8285837eca fix: typo 2025-06-14 01:37:31 +02:00
Samuel Onoja
6221a63b99 fix: excessive open file descriptors
previously, recursive directory traversal led to OS errors due to too
many simultaneously open file handles.

This PR fixes that by making sure we don't read dir until we actually
need to.
2025-06-14 01:37:31 +02:00
Sandro-Alessio Gierens
67970d6346 style: fix various clippy warnings for rust 1.86
Some checks are pending
Unit tests / Build Nix package (push) Blocked by required conditions
Unit tests / unit-tests (macos-latest, beta) (push) Blocked by required conditions
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, 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 / Check Nix Flake (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
OpenBSD 7.6 tests are failing because it only comes with
rust 1.81 while we need 1.82 at least. OpenBSD 7.7 comes with
rust 1.86, but its clippy complains about various issues.
This fixes said things to make OpenBSD CI green again, and
also as preparation for the future.

Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
2025-06-13 06:15:51 +01:00
Christina Sørensen
fe82442933 style: update formatting
Signed-off-by: Christina Sørensen <ces@fem.gg>
2025-05-30 14:26:00 +01:00
Christina Sørensen
718d0f7898 refactor: clippy lints
Signed-off-by: Christina Sørensen <ces@fem.gg>
2025-05-30 14:26:00 +01:00
Wu, Zhenyu
a8d19ab09e chore: add dropbox icon 2025-05-24 07:58:02 +01:00
Wu, Zhenyu
6af53befe6 chore: add swift icon for *.xcplayground 2025-05-24 07:56:56 +01:00
Wu, Zhenyu
4288d14dc9 chore: add Visual Studio icon for *.suo 2025-05-24 07:56:07 +01:00
ariasuni
e04bdba044 fix(git): ignore incorrect Unicode path instead of crashing on Windows 2025-05-16 00:42:18 +02:00
ariasuni
7910ef719c fix(cli): list inside working dir with --list-dirs and no path passed
Before, it just displayed `.` as if `.` was passed explicitely on the cli.
2025-05-13 15:51:21 +01:00
ariasuni
dc6075474f fix(hyperlink): escape spaces in file path to make them work correctly
Some terminal emulator do it themselves, but we want to be correct everywhere
2025-05-13 15:28:51 +01:00
Christina Sørensen
3715dc30a8 style(rust): unbreak formatting
Signed-off-by: Christina Sørensen <ces@fem.gg>
2025-05-01 20:15:33 +01:00
CryoSnake22
40e0315924 feat(icons): add support for .ipynb file icons 2025-05-01 16:29:28 +01:00
Will Reed
e9201aa276 chore(output): add icon for '.stowrc' files 2025-04-21 05:29:59 +01:00
Erwin van Eijk
7db3c7b2f5 feat(once_cell): remove dependency on once_cell
Rust 1.80+ has a proper implementation of LazyLock, which, when used,
removes the dependency on once_cell.

- remove once_cell from dependencies

Fixes: #1169
2025-04-20 09:43:04 +01:00
Christina Sørensen
0f0d99c46e docs(theme): specify perf improvements
Mostly in case we decide that the complexity is too unweildy in the
future, having some idea what the blast radius is will be helpful.
2025-04-20 09:13:35 +01:00
5225225
5b158f16c6 style: clean up glob matching code 2025-04-20 09:13:35 +01:00
5225225
42ffb5f583 perf: use a hashmap when possible for file extension matching 2025-04-20 09:13:35 +01:00
Wu, Zhenyu
ad7bbddd20 chore: add clojure icon for *.cljc and *.edn 2025-04-19 06:05:52 +01:00
Wu, Zhenyu
87c00d2be7 chore: add fsharp icon for *.f# and *.fsscript 2025-04-19 06:04:31 +01:00
Wu, Zhenyu
4528612dc1 chore: add markdown icon for *.mdx 2025-04-19 06:01:50 +01:00
Wu, Zhenyu
041e5ee29f chore: add python icon for *.pxd and *.pyx
https://cython.readthedocs.io/en/latest/src/tutorial/pxd_files.html
https://cython.readthedocs.io/en/latest/src/tutorial/cython_tutorial.html
2025-04-19 06:00:58 +01:00
Wu, Zhenyu
5fdeb19d45 chore: add ruby icon for config.ru, Gemfile, Gemfile.lock, procfile, rake, rakefile and change ruby icon
https://www.ruby-lang.org/en/about/logo/
ruby's official logo is falling down
2025-04-10 23:58:29 +02:00
Wu, Zhenyu
670923a5aa chore: add MS DOS icon for *.com
https://en.wikipedia.org/wiki/COM_file
2025-04-10 19:26:24 +02:00
MartinFillon
ea5da98fc5 fix(icons): hi extension icon wasnt working as it was in the wrong aray 2025-04-04 09:05:50 +01:00
ariasuni
2b879d0728 fix(git-repo): Don’t truncate branch name 2025-04-02 14:24:20 +01:00
Christina Sørensen
5500c4e3aa fix(windows): fix unused PermissionsPlus fields
Signed-off-by: Christina Sørensen <ces@fem.gg>
2025-03-30 10:30:21 +02:00
Christina Sørensen
17443f0b30 fix(file): unwrap -> expect on libc deviceid calls
Signed-off-by: Christina Sørensen <ces@fem.gg>
2025-03-30 10:30:21 +02:00
Christina Sørensen
e3c5fa745b fix(file): remove unnescesarry unsafe blocks for libc major/minor device id
Signed-off-by: Christina Sørensen <ces@fem.gg>
2025-03-30 10:30:21 +02:00
Wu, Zhenyu
1756f030c9 chore: add fennel icon for ~/.fennelrc and ~/.config/fennel/fennelrc 2025-03-13 07:30:52 +01:00
Jagoda Estera Ślązak
4ee7f3ccbd fix(theme): make temp files visible on white background
Resolves: #1406
2025-03-13 06:17:05 +01:00
Wu, Zhenyu
58d93cd9ff chore: add vim icon for .gvimrc, _vimrc and _gvimrc 2025-03-13 06:05:43 +01:00
Wu, Zhenyu
9326f48984 chore: add gcloud icon for .gcloudignore 2025-03-13 05:59:03 +01:00
Christina Sørensen
835a776c4c feat(icons): add .opam folder icon
Signed-off-by: Christina Sørensen <ces@fem.gg>
2025-03-13 05:57:57 +01:00
Christina Sørensen
357caeeaea feat(icons): add .ocamlinit icon
Signed-off-by: Christina Sørensen <ces@fem.gg>
2025-03-13 05:57:57 +01:00
Christina Sørensen
36f04d1d06 feat(icons): add .exercism folder icon
Signed-off-by: Christina Sørensen <ces@fem.gg>
2025-03-13 05:52:36 +01:00
Wu, Zhenyu
53ae30d8b9
feat: add elixir icon for *.eex, *.leex and mix.lock 2025-02-20 06:32:33 +01:00