Skip to content

Commit

Permalink
Replace exa by eza as exa is unmaintained
Browse files Browse the repository at this point in the history
  • Loading branch information
slamp committed Feb 9, 2024
1 parent 45ea164 commit 01eb14f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ The scripts in this collection don't actually require you to be using ZSH as you
### (optional) Install recommended tools

Optionally, to make the most out of `fzf` preview (`?` toggle), install the following tools and enable the advanced preview (see [Customization](#customization) section):
- `exa` - improved file/directory listing,
- `eza` - improved file/directory listing,
- `bat` - a `cat` clone with syntax highlighting and Git integration,
- `chafa` - show images (the image can look better or worse depending on the terminal app you use),
- `exiftool` - also show image metadata,
Expand All @@ -105,7 +105,7 @@ You can customize a few features by exporting the following environment variable

| Export variable | Description |
| ---------------------------------- |----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `FZF_PREVIEW_ADVANCED` | Use `less` viewer with a pre-processor to display improved previews for a wide range of files (requires you to install at least `exa`, `bat`, `chafa`, `exiftool`; and very recommended `lesspipe.sh` and the tools it uses underneath: `mdcat`, `in2csv`,...). _This is an opt-in feature._ |
| `FZF_PREVIEW_ADVANCED` | Use `less` viewer with a pre-processor to display improved previews for a wide range of files (requires you to install at least `eza`, `bat`, `chafa`, `exiftool`; and very recommended `lesspipe.sh` and the tools it uses underneath: `mdcat`, `in2csv`,...). _This is an opt-in feature._ |
| `FZF_PREVIEW_WINDOW` | Set any value supported by `fzf --preview-window` option, e.g. `right:65%:nohidden` will show the preview by default. |
| `FZF_PATH` | Path to install fzf binary and script, e.g. `${HOME}/.config/fzf`. |
| `FZF_COLOR_SCHEME` | Color scheme for fzf, e.g. `--color='hl:148,hl+:154,pointer:032,marker:010,bg+:237,gutter:008'` |
Expand Down
8 changes: 4 additions & 4 deletions bin/lessfilter-fzf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# lessfilter-fzf > lesspipe.sh > lessfilter
#
# Required tools:
# - exa
# - eza
# - bat
# - chafa, exiftool
# - lesspipe.sh (recommended)
Expand All @@ -34,13 +34,13 @@ category=${mime%%/*}
# shellcheck disable=SC2034 # left for completion
kind=${mime##*/}

if [ -d "$1" ] && has_cmd exa; then
exa --git --header --long --color=always --icons "$1"
if [ -d "$1" ] && has_cmd eza; then
eza --git --header --long --color=always --icons "$1"
elif [ "$category" = image ] && has_cmd chafa && has_cmd exiftool; then
chafa "$1"
exiftool "$1"
elif has_cmd lesspipe.sh; then
# At the time of writing, `lesspipe.sh` does not use `exa` and `chafa`, it just uses `ls` and `exiftool`. It
# At the time of writing, `lesspipe.sh` does not use `eza` and `chafa`, it just uses `ls` and `exiftool`. It
# will ultimately rely on `less` as a sane fallback.
lesspipe.sh "$1" 2>/dev/null
elif [ "$category" = text ] && has_cmd bat; then # <-- give priority to lesspipe.sh if available
Expand Down

0 comments on commit 01eb14f

Please sign in to comment.