a Yazi plugin that integrates fzf and fd, with eza and bat previews
supports: bash, fish, and zsh
Note: This repository is archived.
All features have been merged into frank.yazi, which provides the same functionality and more.
ya pack -a lpnh/fdpthis 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: togglefzfmatch 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 -lalt-c: switch the preview to "content" withezaorbat(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