feat: extend tinty theming to fzf, pi, and tuicr - #2
Open
body-clock wants to merge 2 commits into
Open
Conversation
Add tinted-fzf repo to tinty config.toml with a hook script that generates a clean ~/.config/fzf/tinted.sh from the current scheme. Source the generated file from .zshrc so fzf colors match the active base16/base24 theme. The hook writes FZF_DEFAULT_OPTS with a clean --color= flag (no appending) so switching schemes mid-session doesn't bloat the env var.
Generate ~/.pi/agent/themes/tinted.json and ~/.config/tuicr/themes/tinted.toml from tinty's current scheme, alongside the existing fzf hook.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Switching a tinty scheme now restyles the fzf picker, the pi coding agent, and the tuicr code-review TUI, on top of the terminal and tmux. Hook scripts read tinty's current scheme and its base16/base24 palette, then emit each tool's native theme file so everything tracks the active scheme automatically.
What changed
tinty-fzf-theme.shextracts the generated--colorflags into~/.config/fzf/tinted.shwith a replace-not-append export, soFZF_DEFAULT_OPTSno longer grows on every scheme switch..zshrcsources the file when present.tinty-pi-theme.shmaps the palette to pi's semantic tokens and writes~/.pi/agent/themes/tinted.json, which pi hot-reloads.tinty-tuicr-theme.shmaps the palette to tuicr's UI keys and emits atinted.tomlplus a base16.tmThemefor syntax highlighting, blending diff and syntax backgrounds from the panel color.config.tomland switches hook execution fromzsh -cto the default shell for faster runs.