Skip to content

Output isn't compatible with fzf #34

@joshmedeski

Description

@joshmedeski

Describe the bug

When I wrap my project in fang, my command's output isn't compatible with fzf.

Setup

Please complete the following information along with version numbers, if applicable.

  • OS: macOS
  • Shell: fish
  • Terminal Emulator: wezterm
  • Terminal Multiplexer: tmux

Note: you might encounter rendering issues if your locale does not use
UTF-8 encoding. Please check your locale (locale on POSIX systems) to
see what encoding is being used by your system.

To Reproduce

Steps to reproduce the behavior:

  • Wrap cobra project with fang
  • Call a sub command that returns new lines
  • Pass that command to fzf
  • fzf fails, some sort of standard out issue

Source Code

sesh integrated with fang

Use the list command to test:

make build && sesh list | fzf

Expected behavior

I expect fzf can use the output for picking.

Additional context

I tried many things, like using fmt.PrintLn vs cmd.PrintLn and everything works as expected only when I remove fang.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions