mattn / emmet-vim

emmet for vim: http://emmet.io/
http://mattn.github.io/emmet-vim
MIT License
6.41k stars 411 forks source link

emmet#imageSize() doesn't seem to work #425

Closed yedhink closed 6 years ago

yedhink commented 6 years ago

i just tried the i shortcut for invoking the imageSize() function in emmet. But nothing happens.

I specifically moved the cursor to the img tag and did the above. in insert mode nothing happens. i tried the same in normal mode. i see "call emmet#imageSize()" showing up in command line, but nothing happens.

Tried to invoke the function on this text :- <img src="foo.png">

mattn commented 6 years ago

do you have xxd?

yedhink commented 6 years ago

no i dont. if you would tell me how to get that then i could provide it here.

yedhink commented 6 years ago

00000140: 2020 2020 2020 2020 3c69 6d67 2073 7263 <img src 00000150: 3d22 666f 6f2e 706e 6722 3e0a 2020 2020 ="foo.png">. is this what you were looking for?

mattn commented 6 years ago

No, could you please send me the image file?

yedhink commented 6 years ago

Thank you for asking this :D. it's working now. my bad. the name of orginal image file and the name that i used in the code were not matching. when i used the correct name in the code it worked as intended. Thanks for your time.