dj95 / zjstatus

A configurable statusbar plugin for zellij
MIT License
358 stars 6 forks source link

Palette System #61

Closed MMukundi closed 1 month ago

MMukundi commented 1 month ago

Is your feature request related to a problem? Please describe. I love zjstatus, and its become a must-have part of my terminal workflow. I'm looking to migrate my terminal to a consistent theme, and I'm noticing that there's no easy way to swap alias or name colors. For example, I use Catppuccin everywhere, which uses a consistent set of names and labels for its light and dark variants (see the palette here). As it stands, if I wanted to switch between these variants at any time, this would require manually replacing each light color with its dark alternative, which feels a a bit error prone. Using the ANSI escape codes are a useful escape hatch, but this is a bit limiting in cases where there's a specific color to use that doesn't quite fit the ANSI spec; Catppuccin assigns a 'Crust' color for a darker overlay in UI elements, already usable in the Zellij theme, but is not representable in ANSI (see the tab bar and helix status bar here)

image

Describe the solution you'd like It would help to be able to either a) use the color palette that Zellij is using in the active theme, allowing for a consistent experience there or b) allow for a custom color palette in zjstatus that will map strings to colors.

Additional context zjstatus fills a similar use-case to starship.rs, which was the inspiration for the palette concept: https://github.com/catppuccin/starship/blob/main/palettes/mocha.toml

MMukundi commented 1 month ago

Searched for 'palette', but I totally missed this open issue https://github.com/dj95/zjstatus/issues/12