xaizek
xaizek
Try with (works for me with Kitty v0.38.1): ```vim fileviewer {*.bmp,*.png,*.jpg,*.jpeg,*.gif,*.xpm} \ kitten icat --silent --scale-up --place=%pwx%ph@%pxx%py %c >/dev/tty /dev/tty /dev/tty
Yes, `kitty icat` supports only images: https://fig.io/manual/kitty/icat.
`timg` likely complaints because it also needs `
> For videos I'm trying this but it gives an error: Kitty is... Well, this seems to work: ```vim fileviewer {*.gif,*.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx,*.as[fx]} \ ffmpeg -y -hide_banner -loglevel panic -i %c -ss...
> I can see a thumbnail flash on screen for a bit Try removing `set previewoptions=hardgraphicsclear`. > Is the cursor lag a byproduct of how long it takes the script...
I was thinking of terminal's cursor. You're right in "Is the cursor lag a byproduct of how long it takes the script to run?": the graphical preview unlike textual one...
There is a maintained Python version at https://github.com/ueber-devel/ueberzug and a version in C++ (with Wayland support if you need it) at https://github.com/jstkdng/ueberzugpp. Don't know about the Python version, but C++...
`--grid` doesn't really make sense for a single file and can cause scaling issues. If that doesn't help, maybe `timg` fails to determine terminal size, I think it needs `%N
I suspect it might if `timg` tries to query something from the terminal but Vifm gets the response.
That's how Sixel looks like (as a text). You want to specify [%pd macro](https://vifm.info/vimdoc.shtml#vifm-%25pd) to instruct Vifm to pass that stuff directly to the terminal: ```vim fileviewer {*.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm}, \ magick...