Skip to content

[Feat] Allow adjustment of output formatting #4319

Open
@ferguscollins

Description

@ferguscollins

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

Right now using {n} outputs the field in double quotes. In nix I can easily trim this but in Windows this becomes a hassle and requires post processing of the fzf output outside of the fzf call itself.

Could an option be added to define what the wrapping character is? Or just a toggle to remove it?

Example:

$ type file.csv
test

$ type file.csv | fzf --bind "enter:accept"
test

$ type file.csv | fzf --bind "enter:execute(echo {})+abort"
"test"

This is a minimum example to showcase the output difference, I am aware that the function in the example is no different to the regular fzf output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions