Open screwyprof opened 2 hours ago
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:
fzf_ansi_script="/path/to/tinted-fzf/ansi/ansi.sh";
if [ -f "$fzf_ansi_script" ]; then
. "$fzf_ansi_script"
fi
Using tinty with fzf is useful when one intends to source the tinted-fzf/sh/*.sh
(or fish, etc) files.
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.