Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Problem using 'execute' action invoked via HTTP POST-request #4524

@librolibro

Description

@librolibro

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.65 (devel)

OS

  • Linux
  • macOS
  • Windows
  • Etc.

Shell

  • bash
  • zsh
  • fish

Problem / Steps to reproduce

This is a mininal reproducible example for my problem:

touch ~/some_file
echo -n "Some\nrandom\nitems\ndoesn't\nmatter" | fzf --listen=12345 --bind="F1:execute:curl -X POST -d 'execute:less ~/some_file' http://localhost:12345"

When pressing a binded key (F1 in example), pager will open as expected, but first key will go not to the pager, but to fzf. E.g., if your first keypress in pager will be q, it'wont close - second q press will, but first q will will be added to prompt.

Using zsh + alacritty, it's always reproducible with and without tmux.

P.S. Even if I'm making first keypress after delay of 5-10 seconds, it will still go through pager straight into fzf.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions