Open
Description
Checklist
- I have read through the manual page (
man fzf
) - I have searched through the existing issues
- For bug reports, I have checked if the bug is reproducible in the latest version of fzf
Output of fzf --version
0.62.0 (d226d84)
OS
- Linux
- macOS
- Windows
- Etc.
Shell
- bash
- zsh
- fish
Problem / Steps to reproduce
I think this is the same bug as #3682, but I can add more context and it is not really related to Wezterm / bash. Looks like it is just the way how fzf processes sixels on Windows. And there is a working go code that can do it =)
Repro in pwsh 7.5.1, WindowsTerminal 1.22.11141:
# no sixels
".\wallpapersden.com_curse-by-wlof_1920x1080.jpg" | fzf --preview "chafa {}"
# with sixels
".\wallpapersden.com_curse-by-wlof_1920x1080.jpg" | fzf --preview "chafa {} -f sixel --passthrough auto"
# Chafa sixels work
chafa .\wallpapersden.com_curse-by-wlof_1920x1080.jpg -f sixel --passthrough auto
What makes it interesting is that another TUI tool written in Go actually can render sixels on Windows. https://github.com/gokcehan/lf
» bat C:\Users\alexk\AppData\Local\lf\lfrc
───────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ File: C:\Users\alexk\AppData\Local\lf\lfrc
───────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
1 │ set previewer C:\\Users\\alexk\\Documents\\Powershell\\Data\\Winget\\preview.bat
2 │ set sixel
───────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
» bat C:\Users\alexk\Documents\Powershell\Data\Winget\preview.bat
───────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ File: C:\Users\alexk\Documents\Powershell\Data\Winget\preview.bat
───────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
1 │ @chafa.exe -f sixel --passthrough auto %*
───────┴─────────────────────────────────────────────────────────────────────────────────────────
» lf