From b79d4bc4ce1deb5feed94a248dc177fa9733fef3 Mon Sep 17 00:00:00 2001 From: Diego Date: Tue, 28 Jan 2025 13:44:56 -0500 Subject: [PATCH 1/2] Use eza instead of exa Exa is no longer maintained. --- README.md | 4 ++-- functions/_fifc_preview_dir.fish | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b565ca0..f445512 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ fifc can use modern tools if available: | [chafa](https://github.com/hpjansson/chafa) | file | Preview images, gif, pdf etc | `$fifc_chafa_opts` | | [hexyl](https://github.com/sharkdp/hexyl) | file | Preview binaries | `$fifc_hexyl_opts` | | [fd](https://github.com/sharkdp/fd) | find | Complete paths | `$fifc_fd_opts` | -| [exa](https://github.com/ogham/exa) | ls | Preview directories | `$fifc_exa_opts` | +| [eza](https://github.com/eza-community/eza) | ls | Preview directories | `$fifc_eza_opts` | | [ripgrep](https://github.com/BurntSushi/ripgrep) | pcregrep | Search options in man pages | - | | [procs](https://github.com/dalance/procs) | ps | Complete processes and preview their tree | `$fifc_procs_opts` | | [broot](https://github.com/Canop/broot) | - | Explore directory trees | `$fifc_broot_opts` | @@ -76,7 +76,7 @@ Show hidden file by default: - `set -U fifc_fd_opts --hidden` -⚠️ Don't use quotes in variables, set them as a list: `set -U fifc_exa_opts --icons --tree` +⚠️ Don't use quotes in variables, set them as a list: `set -U fifc_eza_opts --icons --tree` ## 🛠️ Write your own rules diff --git a/functions/_fifc_preview_dir.fish b/functions/_fifc_preview_dir.fish index 1c91e80..a9954f0 100644 --- a/functions/_fifc_preview_dir.fish +++ b/functions/_fifc_preview_dir.fish @@ -1,6 +1,6 @@ function _fifc_preview_dir -d "List content of the selected directory" - if type -q exa - exa --color=always $fifc_exa_opts $fifc_candidate + if type -q eza + eza --color=always $fifc_eza_opts $fifc_candidate else ls --color=always $fifc_ls_opts $fifc_candidate end From c269c5069455f89ae6d12cb31b512b8c6a7f51e1 Mon Sep 17 00:00:00 2001 From: Diego Date: Thu, 7 Aug 2025 10:53:44 -0400 Subject: [PATCH 2/2] Fall back to exa for compatibility --- functions/_fifc_preview_dir.fish | 2 ++ 1 file changed, 2 insertions(+) diff --git a/functions/_fifc_preview_dir.fish b/functions/_fifc_preview_dir.fish index a9954f0..d330e3d 100644 --- a/functions/_fifc_preview_dir.fish +++ b/functions/_fifc_preview_dir.fish @@ -1,6 +1,8 @@ function _fifc_preview_dir -d "List content of the selected directory" if type -q eza eza --color=always $fifc_eza_opts $fifc_candidate + else if type -q exa + exa --color=always $fifc_exa_opts $fifc_candidate else ls --color=always $fifc_ls_opts $fifc_candidate end