wlines icon indicating copy to clipboard operation
wlines copied to clipboard

Per-entry color/styling

Open JerwuQu opened this issue 4 years ago • 0 comments

It would be nice to be able to specify colors (and possibly simple styling) for each line in input.

I am a bit unsure how it would be done in practice though, so I'm leaving this issue here as a sort of self-reminder.

If you happen to see this and have any input, please leave a comment 😄

Examples using a single delimiter:

  • "bg:#123456,fg:#123456\tDisplayed Line"
  • "\tDisplayed Line" - would use default colors
  • "fg:#123456\tDisplayed Line" - would use the default background
  • "align:right\tDisplayed Line"
  • "Displayed Line" - would error

Examples using a multiple delimiters (more complex implementation):

  • "fg:#123456\tDisplayed \tfg:#654321\tLine" - would display "Displayed Line" in two different colors
  • "align:left\tLeft\talign:right\tRight" - would display "Left" to the left and "Right" to the right
  • "Displayed Line" - would not error

It would be a flag (-C) such that it wouldn't break on regular input.

Questions:

  • Is the flexibility worth the complexification?
  • How would overlapping be prevented for lines with multiple align options?
  • Is TAB the best delimiter for this?

JerwuQu avatar Oct 13 '21 05:10 JerwuQu