kyoheiu / felix

tui file manager with vim-like key mapping
https://kyoheiu.dev/felix/
MIT License
692 stars 24 forks source link

Color config with RGB #248

Closed riou0801 closed 8 months ago

riou0801 commented 8 months ago

Hi, there.

I change the color from default to Rgb, but failed. my color config is like this;

color:
  dir_fg: Rgb(148, 226, 213)
  file_fg: Rgb(205, 214, 244)    
  symlink_fg: Rgb(249, 226, 175)
  dirty_fg: Rgb(235, 160, 172)

console log;

Cannot read the config file properly.
Error: color.dir_fg: unknown variant `Rgb(148, 226, 213)`, expected one of `Black`, `Red`, `Green`, `Yellow`, `Blue`, `Magenta`, `Cyan`, `White`, `LightBlack`, `LightRed`, `LightGreen`, `LightYellow`, `LightBlue`, `LightMagenta`, `LightCyan`, `LightWhite`, `Rgb`, `AnsiValue` at line 66 column 11
felix launches with default configuration.

is this a bug? or wrong configuration?

OS: Archlinux DE: Sway terminal: foot felix version :2.8.1

kyoheiu commented 8 months ago

Sorry, I've not updated the documentation. You can use Rgb or AnsiValue in config.yaml like this:

color:
  dir_fg: LightCyan
  file_fg: !AnsiValue 120
  symlink_fg: LightYellow
  dirty_fg: !Rgb [124, 30, 40]
riou0801 commented 8 months ago

thanks for your early feedback! I've confirmed, so close this issue