Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
uwe-schwarz opened this issue Jan 14, 2025 · 2 comments · Fixed by #811
Closed

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

uwe-schwarz opened this issue Jan 14, 2025 · 2 comments · Fixed by #811

Comments

@uwe-schwarz
Copy link

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
@MTHLily
Copy link

MTHLily commented Jan 16, 2025

The change was implemented in #762.

Unfortunately, there's no flag to force interactive mode for table yet, so the current hotfix is to revert to the previous version.

@caarlos0
Copy link
Member

should be fixed by #811

@caarlos0 caarlos0 marked this as a duplicate of #808 Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants