lnav icon indicating copy to clipboard operation
lnav copied to clipboard

Custom theme changes not reflected after modifications

Open theinfinull opened this issue 9 months ago • 1 comments

Changes to a custom theme are not reflected in LNAV, even after restarting the application or switching themes.

To Reproduce

  • Create a theme file xyz.json with "theme": "xyz" in ~/.config/lnav/configs/installed/.
  • Add "strike": true for all text to verify it's working.
  • Set the theme using :config /ui/theme xyz.
  • Modify the theme (e.g., change "strike": false).
  • Restart LNAV — old styling remains (text still striked).
  • Switching to other themes and back doesn't help.
  • Deleting xyz.json breaks LNAV, so the file is being read.

It should apply the updated theme after restart or offer a way to reload it, but it seems to use a cached or stale version of the theme.

Questions:

  • Is there a cache involved?
  • Is there a way to reload themes manually?
  • Is this a bug in theme handling?

LNAV Version: v0.12.4 OS: macOS (Terminal: Ghostty) Theme Location: ~/.config/lnav/configs/installed/xyz.json

Thanks!

theinfinull avatar May 18 '25 04:05 theinfinull

Sorry, I'm not able to replicate any of the issues except for failing to start up after deleting the theme file. When you say "Modify the theme", do you mean changing the file?

I made a theme file with bold set to true, changed the file, and the change had an effect.

  • Is there a cache involved?

There's no cache.

  • Is there a way to reload themes manually?

The configuration is loaded on startup.

tstack avatar Jun 02 '25 22:06 tstack