Note
this plugin is only guaranteed to be compatible with Yazi nightly
a Yazi plugin that integrates fzf
and fd
, with eza
and bat
previews
supports: bash
, fish
, and zsh
ya pack -a lpnh/fdp
this plugin supports four arguments:
cwd
: limits the search to the current directoryall
: searches for both files and directoriesdir
: searches for directories onlyfile
: searches for files only
below is an example of how to configure them in the
~/.config/yazi/keymap.toml
file:
[[manager.prepend_keymap]]
on = ["f", "a"]
run = "plugin fdp all"
desc = "fd search (all)"
[[manager.prepend_keymap]]
on = ["f", "c"]
run = "plugin fdp cwd"
desc = "fd search (CWD)"
[[manager.prepend_keymap]]
on = ["f", "d"]
run = "plugin fdp dir"
desc = "fd search (dirs)"
[[manager.prepend_keymap]]
on = ["f", "f"]
run = "plugin fdp file"
desc = "fd search (files)"
this plugin provides the following custom fzf
keybindings:
ctrl-s
: togglefzf
match search for the current query resultsctrl-]
: toggle the preview window size (66%, 80%)ctrl-\
: toggle the preview window position (top, right)alt-m
: switch the preview to "metadata" witheza -l
alt-c
: switch the preview to "content" witheza
orbat
(default)
you can customize the default fzf
colors using the FZF_DEFAULT_OPTS
environment variable. for an example, check out Catppuccin's fzf
repo
more examples of color themes can be found in the fzf documentation
you can customize the colors of eza
previews using its
~/.config/eza/theme.yml
configuration file. check the
eza-theme repository for some
existing themes
for more details, see eza_colors-explanation
thanks @prosoitos for the inspiration