vim-afterimage icon indicating copy to clipboard operation
vim-afterimage copied to clipboard

Animated GIFs don't work

Open benaryorg opened this issue 5 years ago • 2 comments

It seems when opening a GIF the plugin tries to open the specified file in the temporary directory without the -${frame} appended. For example on this here device it does create ${tmpdir}/2-0 through ${tmpdir}/2-18, but throws an error about being unable to open ${tmpdir}/2:

"Downloads/somefile.gif" [noeol] 5501L, 925970C
Error detected while processing function AfterimageReadPost:
line   34:
E484: Cannot open file ${tmpdir}/2
Press ENTER or type command to continue

benaryorg avatar Jun 02 '20 15:06 benaryorg

Static GIFs work fine; this problem appears to be limited to animated ones. I'm not sure what to do about this. There isn't a good way to load multiple frames into a single XPM file that I am aware of.

tpope avatar Jun 02 '20 19:06 tpope

Opening all of the files in the directory might be enough for editing, going through all the frames using :wn and so on. Shortly after I opened the issue I realized that the real problem is probably to call the underlying library in a way to put the whole thing back together, but that's probably something you could answer better than me ;-)

benaryorg avatar Jun 02 '20 20:06 benaryorg