Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` |
Expand All @@ -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

Expand Down
4 changes: 2 additions & 2 deletions functions/_fifc_preview_dir.fish
Original file line number Diff line number Diff line change
@@ -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
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we could add an exa fallback here, to not break compatibility

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I guess I should keep around fifc_exa_opts too in that case?

ls --color=always $fifc_ls_opts $fifc_candidate
end
Expand Down