wezterm
wezterm copied to clipboard
Re-consider SVG support for imgcat
I just read the previous discussion on #896. iTerm2 does support SVG images, but not exactly.
iTerm2 cannot parse those SVG images with decimal numbers, such as viewBox="0 0 1.5 2", width="20.5", and height="1.333333".
But for integer sizes, it works well.
Here are some examples on iTerm2 (it uses this imgcat):
imgcat -u 'https://cdn.simpleicons.org/wezterm'
imgcat -u 'https://cdn.simpleicons.org/wezterm?viewbox=auto'
imgcat -u 'https://cdn.simpleicons.org/wezterm?viewbox=auto&size=48'
This means users can insert their own favorite tech/social icons into terminal:
echo "$(imgcat -u 'https://cdn.simpleicons.org/wezterm?viewbox=auto&size=32') My favorite terminal emualtor"
What do you think?