-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Colors broken in fzf preview on Windows (mintty) #4199
Comments
Does |
Yes, output is similar to shown by |
Yes, this is the same problem: fzf somehow transforms color codes received from bat. |
It is probably because of Lines 18 to 44 in 243a760
Related: |
Same result. It's not only mintty related, but also reproducible with Alacritty and ConEmu. |
I don't think it's the same problem. He said "If I specify the theme directly, everything works as expected". @t40mas It looks like 'bat' somehow fails to detect the terminal theme (dark or light) when run inside the preview window of fzf. |
It seems that together with bat's theme-dark problem, it just happened that 'Catppuccin Mocha' theme colors are not that much warped by fzf pass-through. But there are still slight differences in colors, and |
Checklist
man fzf
)Output of
fzf --version
0.56.3 (tarball)
OS
Shell
Problem / Steps to reproduce
Syntax and line highlighting produced by bat are incorrectly displayed by fzf preview on mintty:
#> echo | fzf --preview="bat --theme=1337 --highlight-line=2 --color=always test.sh | tee out.txt"
#> cat out.txt
The issue is also reproducible on Alacritty and ConEmu.
Colors are kept intact only on Windows Terminal, but it is unusably slow and laggy.
The text was updated successfully, but these errors were encountered: