bubbles icon indicating copy to clipboard operation
bubbles copied to clipboard

Add support for colors in table cells

Open sergiolms opened this issue 2 years ago • 0 comments

With this PR I want to address the following:

  • Invisible characters cause incorrect calculation of cell width, making the table component to incorrectly print ellipsis when it shouldn't.
  • When highlighting a row, if a cell had colors in it, the reset character would break the highlighting. I am removing the reset character and then highlighting each cell individually instead of the whole row, so that the highlight reset character serves as the reset character for the previously set color.
  • While I was at it, I removed the min and max methods, since GoLang introduces them since v1.21

sergiolms avatar Nov 23 '23 15:11 sergiolms