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 - Add --return-column & --show-columns #320

Open
CaelFrost opened this issue Mar 22, 2023 · 3 comments
Open

Gum Table - Add --return-column & --show-columns #320

CaelFrost opened this issue Mar 22, 2023 · 3 comments

Comments

@CaelFrost
Copy link

Is your feature request related to a problem? Please describe.
Rematching data from the selected row to the source table, so that once a choice is made the script can use the full row data versus the subset shown in gum table.

Describe the solution you'd like

  • When sending data in as a table, I often want to include an index column but not show that column to the user in the TUI.
    not sure if the right choice is to use --show-columns or --hide-columns, but either would solve my need
  • Once the user makes the selection, having gum table return ONLY the columns specified in --return-column=0 will cause gum table to only return the first column of each row, and allows the script to use this returned data to refilter the source table for only the indexes specified.

Describe alternatives you've considered
currently adding a 'index' column but this is shown to the user

Additional context
Add any other context or screenshots about the feature request here.

@deicon
Copy link
Contributor

deicon commented Aug 25, 2023

#415 Should fix the request for the return value

@deicon
Copy link
Contributor

deicon commented Aug 25, 2023

I prefer to use 1 if referring to the first column in user facing command args.

@deicon
Copy link
Contributor

deicon commented Aug 25, 2023

charmbracelet/bubbles#412 Will be needed to support the hiding feature.
Once and If this will be merged to bubbles, I will create a PR here for the --hide-columns feature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants