now works only in Linux
v0.1.0
https://github.com/rmaksim/Sublime-Text-2-Image-Viewer
[size=120]View image from CSS declaration, HTML tag, and may be from something else [/size]
+ bonus: in sidebar just select for preview (or open for edit) image file and press super+i
Example
html:
<img src="img/image.png" />
|
^ cursor
css:
background: url(../img/image.png);
|
^ cursor
Pressing the super+i
opens the image viewer installed on your system by default.
Default (Linux).sublime-keymap
{"keys": "super+i"], "command": "image_viewer"}
]
support for .jpg, .png and .gif images (and .other from image_viewer.sublime-settings)
{
"image_types": ".jpg", ".png", ".gif"]
}