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