Skip to content

Allow passing --walker options to the fzf plugin #2715

@CBeerta

Description

@CBeerta

yazi --debug output

Yazi
    Version: 25.4.8 (cb3eea62 2025-05-04)
    Debug  : true
    Triple : x86_64-unknown-linux-gnu (linux-x86_64)
    Rustc  : 1.86.0 (05f9846f 2025-03-31)

Ya
    Version: 25.4.8 (Arch Linux 2025-04-09)

Emulator
    TERM                : Some("tmux-256color")
    TERM_PROGRAM        : Some("tmux")
    TERM_PROGRAM_VERSION: Some("3.5a")
    Brand.from_env      : Some(Foot)
    Emulator.detect     : Emulator { kind: Left(Foot), light: false, csi_16t: (7, 14), force_16t: false }

Adapter
    Adapter.matches    : Sixel
    Dimension.available: Dimension { rows: 73, columns: 222, width: 1554, height: 1022 }

Desktop
    XDG_SESSION_TYPE           : Some("wayland")
    WAYLAND_DISPLAY            : Some("wayland-1")
    DISPLAY                    : Some(":0")
    SWAYSOCK                   : None
    HYPRLAND_INSTANCE_SIGNATURE: Some("29e2e59fdbab8ed2cc23a20e3c6043d5decb5cdc_1746114722_733561533")
    WAYFIRE_SOCKET             : None

SSH
    shared.in_ssh_connection: false

WSL
    WSL: false

Variables
    SHELL           : Some("/usr/bin/bash")
    EDITOR          : Some("vim")
    VISUAL          : None
    YAZI_FILE_ONE   : None
    YAZI_CONFIG_HOME: None
    YAZI_ZOXIDE_OPTS: None
    FZF_DEFAULT_OPTS: Some("--bind ctrl-a:select-all,ctrl-d:deselect-all,ctrl-t:toggle-all --walker file,dir,follow --walker-skip .git,.seen,lowres,target --preview \'~/.dotfiles/bin/fzf-preview.sh {}\'")

Text Opener
    default     : Some(OpenerRule { run: "${EDITOR:=vim} \"$@\"", block: true, orphan: false, desc: "Edit File", for_: None, spread: true })
    block-create: Some(OpenerRule { run: "${EDITOR:=vim} \"$@\"", block: true, orphan: false, desc: "Edit File", for_: None, spread: true })
    block-rename: Some(OpenerRule { run: "${EDITOR:=vim} \"$@\"", block: true, orphan: false, desc: "Edit File", for_: None, spread: true })

Multiplexers
    TMUX               : true
    tmux version       : tmux 3.5a
    tmux build flags   : enable-sixel=Unknown
    ZELLIJ_SESSION_NAME: None
    Zellij version     : No such file or directory (os error 2)

Dependencies
    file          : 5.46
    ueberzugpp    : 2.9.6
    ffmpeg/ffprobe: 7.1.1 / 7.1.1
    pdftoppm      : 25.04.0
    magick        : 7.1.1-47
    fzf           : 0.61.3
    fd/fdfind     : 10.2.0 / No such file or directory (os error 2)
    rg            : 14.1.1
    chafa         : 1.14.5
    zoxide        : No such file or directory (os error 2)
    7zz/7z        : No such file or directory (os error 2) / 24.09
    resvg         : No such file or directory (os error 2)
    jq            : 1.7.1

Clipboard
    wl-copy/paste: 2.2.1 / 2.2.1
    xclip        : 0.13
    xsel         : 1.2.1

Routine
    `file -bL --mime-type`: text/plain


See https://yazi-rs.github.io/docs/plugins/overview#debugging on how to enable logging or debug runtime errors.

Please describe the problem you're trying to solve

I would like to have to keybinds to trigger fzf one default, and one that sets --walker=dir,follow to only see directories:

  { on = "<A-c>", run = "plugin fzf -- --walker=dir,follow", desc = "Jump to a directory via FZF" },
  { on = "<C-Space>", run = "plugin fzf", desc = "Jump to a directory via FZF" },

Would you be willing to contribute this feature?

  • Yes, I'll give it a shot

Describe the solution you'd like

With the appropriate keybind i want to only see directories in fzf

Additional context

No response

Checklist

  • I have searched the existing issues/discussions
  • The latest nightly build doesn't already have this feature

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions