Skip to content

Use the inherited STDIN in ZLE widget #4662

@dreisicht

Description

@dreisicht

Checklist

  • I have read through the manual page (man fzf)
  • I have searched through the existing issues
  • For bug reports, I have checked if the bug is reproducible in the latest version of fzf

Output of fzf --version

0.67.0

OS

  • Linux
  • macOS
  • Windows
  • Etc.

Shell

  • bash
  • zsh
  • fish

Problem / Steps to reproduce

Is there a way to inherit the STDIN in zle widget mode? For example here fzf won't properly work since it doesn't inherit the files in ZLE mode.

y() {
  fzf
  zle reset-prompt
}

zle -N y
bindkey '^Y' y

For details see the resulting problem dicussed in yazi: sxyazi/yazi#3503

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions