Note
this plugin is only guaranteed to be compatible with Yazi nightly
a Yazi plugin that adds the fzf
interface to fd
with eza
preview for
directories and bat
preview for files
supports: bash
, fish
, and zsh
ya pack -a lpnh/fdp
there are four different arguments available for this plugin
cwd
: limits the search to the current directoryall
: searches for both files and directories, adding..
and.
to the selectiondir
: searches for directories onlyfile
: searches for files only
here's an example of how to set them in the ~/.config/yazi/keymap.toml
file:
[[manager.prepend_keymap]]
on = ["f", "a"]
run = "plugin fdp --args='all'"
desc = "fd with preview (all)"
[[manager.prepend_keymap]]
on = ["f", "c"]
run = "plugin fdp --args='cwd'"
desc = "fd with preview (CWD only)"
[[manager.prepend_keymap]]
on = ["f", "d"]
run = "plugin fdp --args='dir'"
desc = "fd with preview (dirs only)"
[[manager.prepend_keymap]]
on = ["f", "f"]
run = "plugin fdp --args='file'"
desc = "fd with preview (files only)"
bonus: <ctrl-space>
switches the preview to display metadata from eza
for the selected entry
@prosoitos for the inspiration