From 1d19d0ec24b924d1d2ccf2cab25199c6e6865fd7 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 15 Sep 2026 13:33:54 -0300 Subject: Tint pane tag filenames with an optional theme color --- docs/config.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'docs/config.md') diff --git a/docs/config.md b/docs/config.md index e8c25ceb..899d4cc4 100644 --- a/docs/config.md +++ b/docs/config.md @@ -254,8 +254,8 @@ format, and it is `pardes.Theme` serialised by `std.zon.stringify`: the theme name, thirteen required RGB roles (`sel_bg`, `sel_fg`, `tag_bg`, `tag_fg`, `box`, `box_dim`, `kw`, `str`, `num`, `comment`, `lineno`, `scroll_track`, `scroll_thumb`), nullable `bg`/`fg`, and either a 16-color RGB `palette` or -`null`. Nine optional nullable RGB roles extend this format: -`tag_active_bg`, `tag_active_fg`, `border`, `search_bg`, `search_fg`, +`null`. Optional nullable RGB roles extend this format: +`tag_active_bg`, `tag_active_fg`, `tag_name_fg`, `border`, `lineno_active`, `search_bg`, `search_fg`, `diagnostic_error`, `diagnostic_warning`, `diagnostic_info`, and `diagnostic_hint`. Missing new roles use backward-compatible defaults, so previously exported files remain valid. [Theme customization](themes.md) @@ -263,6 +263,11 @@ describes each role and its fallback. RGB values are three-byte arrays, and hex literals are accepted. The original fields remain required; there is no inheritance or partial override layer. +`tag_name_fg` gives the filename at the end of a pane's path a separate +foreground on both normal and active tags. When omitted or `null`, it uses +the corresponding tag foreground. Directory text and tag commands retain +their regular colors; selecting filename text uses the selection colors. + `Filter` in a terminal's tag projects that pane's ANSI colors through the active theme, and does it in two stages. The default foreground and background roles are mapped FIRST, because ghostty-vt generates the whole 256-color -- cgit v1.3