bubbles icon indicating copy to clipboard operation
bubbles copied to clipboard

feat: Allow to mark colums as hidden. This might be helpful to hide s…

Open deicon opened this issue 2 years ago • 2 comments

Tables might contain more than needs to be visible to the user. Consider a table like

ID PrimaryKey UserName 1 12392839281. My_Username

Once displayed to the user, we want the user to select a row but don't want to expose the PrimaryKey. This is only used after user selection for further processing.

This can then be used to enable https://github.com/charmbracelet/gum/issues/320

deicon avatar Aug 25 '23 18:08 deicon

@maaslalani any chance this gets a review any time soon ?

deicon avatar Oct 17 '23 07:10 deicon

@maaslalani any chance this gets a review any time soon ?

Hey @deicon, because of the new Lip Gloss tables (https://github.com/charmbracelet/lipgloss/releases/tag/v0.9.0) we're currently integrating that renderer into Bubbles which will then be used in Gum. So we should review / revisit this feature after the new table renderer is introduced in Bubbles and Gum.

maaslalani avatar Oct 17 '23 13:10 maaslalani

Hey @deicon, we recently introduced hiding a column by setting the width to 0:

  • https://github.com/charmbracelet/bubbles/pull/465

Let us know if this solves your use case, feel free to re-open this PR or create a new issue if it doesn't!

maaslalani avatar Feb 28 '24 17:02 maaslalani

@maaslalani Kind of. Mostly I was trying to fix https://github.com/charmbracelet/gum/issues/320 by a PR in GUM. to make this even better, I would love to hide some columns but still use values of columns as return values from the gum table command. https://github.com/charmbracelet/gum/pull/415

deicon avatar Feb 28 '24 19:02 deicon