You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using tinty with ANSI colours, it expects theme-specific files in the directory specified by themes-dir. However, for ANSI colours we only have a single ansi.sh file that works for all themes.
❯ tinty apply base16-catppuccin-frappe
Theme does not exists forfzfin /Users/happygopher/.local/share/tinted-theming/tinty/repos/fzf/ansi. Try running `tinty update` or submit an issue on https://github.com/tinted-theming/tinty
Desired behaviour
Since ANSI colours are theme-agnostic (they use terminal colours), it would be helpful to:
Either support a special case in tinty for ANSI colors
Or provide theme-specific symlinks to ansi.sh in the repo
What I do for fzf specifically is to source the ansi.sh script file in my shell *rc file. This doesn't need to be sourced again and will simply update correctly when you switch your terminal theme:
Hey @JamyGolden, yes, I understand that. Just I thought the whole idea of having a theme manager is to, well manage themes via a manager for all the apps :) But in reality, at this moment it's not a trivial task, lots of applications require custom setups...
Update: I guess the problem is tinty is not flexible enough at this stage to handle this case. Maybe its hooks could be extended in future to support actions on the repo level and not only a specific theme file. Than in this case, the hook will just source ansi/ansi.sh
Ah ok yes I see what you mean. Currently it is possible with tinty but a little hacky. You could add fzf to tinty, set the themes dir to “sh” (will be unused) and then use the global tinty “hooks” property to source ansi.sh.
ANSI colours support for tinty
When using
tinty
with ANSI colours, it expects theme-specific files in the directory specified bythemes-dir
. However, for ANSI colours we only have a singleansi.sh
file that works for all themes.Current behavior
When trying to use ANSI colours with
tinty
:It fails with:
Desired behaviour
Since ANSI colours are theme-agnostic (they use terminal colours), it would be helpful to:
ansi.sh
in the repoCurrent workaround
With modified config:
I create symlinks for each theme name pointing to
ansi.sh
:This works but feels like it could be handled more elegantly at the tinty or repo level.
The text was updated successfully, but these errors were encountered: