A Sublime Text 3 plugin to preview images simply by hovering on a file name or an image url.
Hover Preview has been approved on Package Control!
cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages git clone --depth=1 https://github.com/alvesjtiago/hover-preview.git
cd ~/.config/sublime-text-3/Packages git clone --depth=1 https://github.com/alvesjtiago/hover-preview.git
cd "%APPDATA%\Sublime Text 3\Packages" git clone --depth=1 https://github.com/alvesjtiago/hover-preview.git
Or manually create a folder named "hover-preview" on your Packages folder and copy the content of this repo to it.
- max_width x max_height for which the pop-up is considered too big and should be resized, (default:
"project" (default):searches for the hovered file name in the project.
"file":joins the file path to the hovered file name and see if it makes a valid image path.
true (default): takes only the name part of the hovered file name and performs a recursive search in the project (directories and subdirectories).
false: sees if the hovered file name exists in the base folders of the project (directories only).
- all image formats to look for, (default:
["png", "jpg", "jpeg", "bmp", "gif", "ico", "svg", "svgz", "webp"]).
- images that require conversion before rendering, (default:
[".svg", ".svgz", ".webp"]).
"recursive": truethe path part is irrelevant, if you don't like this behavior you can set this to
"recursive"is only relevant if
"search_mode"is set to
- to preview images that need conversion the plugin requires Imagemagick and that
magickcommand is in your path.
Hover Preview is a small utility created by Tiago Alves. Any help on this project is more than welcome. Or if you find any problems, please comment or open an issue with as much information as you can provide.