Skip to content

gum table doesn't allow selecting on stdout redirect #800

@uwe-schwarz

Description

@uwe-schwarz

Describe the bug
When using gum table to store the result in a variable or redirecting it to a file, it just prints the table.

To Reproduce
Steps to reproduce the behavior:

  1. echo -e "a,b,c\n1,2,3\n4,5,6" | gum table
  2. echo -e "a,b,c\n1,2,3\n4,5,6" | gum table | cat

Expected behavior
I would expect both version to behave identical, displaying the table, let me choose a line and printing the selected line. The behaviour to print the selected line only in interactive mode is kinda useless.

Desktop (please complete the following information):

  • OS: macOS and Linux tested
  • Version gum version 0.15.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions