Skip to content

fzf automatically adds quotes around parameter expressions #4330

@kevincotter

Description

@kevincotter

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.60.3 (0012183)

OS

  • Linux
  • macOS
  • Windows
  • Etc.

Shell

  • bash
  • zsh
  • fish

Problem / Steps to reproduce

I'm trying to use the selected item as a parameter in an execute command but I need the parameter to be without quotes. fzf seems to be automatically adding them.

Input:
echo c:\windows| fzf --bind "enter:execute(echo ^\"cd {}^\")"

Output:
"cd "c:\windows""

Desired Output:
"cd c:\windows"

This looks similar to #2609.

Is there a way to disable the automatic conversion and just get the raw, selected text w/o quotes?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions