Skip to content

fix(theme): make Zellij mouse selections visible again - #35

Merged
jlargs64 merged 1 commit into
mainfrom
fix/zellij-selection
Oct 4, 2026
Merged

jlargs64 merged 1 commit into
mainfrom
fix/zellij-selection

Conversation

@jlargs64

@jlargs64 jlargs64 commented Oct 4, 2026

Copy link
Copy Markdown
Owner

What

Selecting text with the mouse inside a Zellij pane showed no highlight. In Zellij's flat theme format black is the pane background and bg is only used for mouse selections (plus selected rows in its own UI), and every macarchy theme set both to the pane colour. Confirmed against Zellij 0.43.1: text_selected.background = palette.bg, text_unselected.background = palette.black.

Changes

  • Every shipped theme's zellij.kdl: bg now takes the theme's Ghostty selection-background colour, with a comment explaining the field.
  • theme-new and theme-port generate bg the same way for new themes.
  • New test in tests/themes.bats fails if any theme's bg equals black.
  • docs/theme-system.md and the README theme contract note what bg and black mean.

Verified

  • ZELLIJ_CONFIG_DIR=<tmp> zellij setup --check accepts the new theme file.
  • pre-commit run --files ... passes.
  • Theme bats suites pass, except the pre-existing theme-new.bats "darken-for-dim rule" slot 6 failure, which also fails on untouched main.

🤖 Generated with Claude Code

In Zellij's flat theme format `black` is the pane background and `bg`
only paints mouse selections (and selected rows in its own UI). Every
theme set both to the pane colour, so selecting text in a Zellij pane
showed no highlight at all.

Set `bg` to each theme's Ghostty selection-background colour, generate it
that way in theme-new and theme-port, and add a bats test that fails if a
theme's `bg` ever equals `black` again. Document the field meaning in
docs/theme-system.md and the README theme contract.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@github-actions github-actions Bot added type: docs README, docs/ or the site copy area: theming theme-set, theme-port, theme-pick, wallpapers type: theme A new theme, a port from Omarchy, or a palette fix labels Oct 4, 2026
@jlargs64
jlargs64 merged commit c4bd6f2 into main Oct 4, 2026
10 checks passed
@jlargs64
jlargs64 deleted the fix/zellij-selection branch October 4, 2026 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: theming theme-set, theme-port, theme-pick, wallpapers type: docs README, docs/ or the site copy type: theme A new theme, a port from Omarchy, or a palette fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant