ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Hover Image Preview

by alvesjtiago ST3 Trending

Sublime Text 3 Plugin for previewing images.

Details

Installs

  • Total 7K
  • Win 4K
  • OS X 2K
  • Linux 757
Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6
Windows 2 8 11 5 8 8 4 2 0 0 6 10 8 5 6 5 8 5 6 4 4 6 7 3 3 6 4 2 1 5 3 5 3 9 6 2 2 7 9 4 6 4 6 5 6 4
OS X 0 0 3 3 2 3 3 2 0 0 0 0 3 1 1 0 2 2 1 1 0 2 0 2 0 0 0 3 2 1 2 0 0 4 1 2 0 1 2 0 2 2 1 1 1 1
Linux 0 0 0 1 2 0 0 0 0 0 1 4 0 2 0 2 1 0 3 1 0 0 2 1 0 2 1 0 1 2 2 3 1 3 0 0 0 1 2 2 1 0 0 1 1 0

Readme

Source
raw.​githubusercontent.​com

Hover Preview

A Sublime Text 3 plugin to preview images simply by hovering on a file name or an image url.

Screenshot of Hover Preview, a plugin for Sublime Text 3 by @alvesjtiago

Installation

Package Control

Hover Preview has been approved on Package Control! 🎉 Search for “Hover Image Preview” and install.

Manual

macOS

cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages
git clone --depth=1 https://github.com/alvesjtiago/hover-preview.git

Ubuntu

cd ~/.config/sublime-text-3/Packages
git clone --depth=1 https://github.com/alvesjtiago/hover-preview.git

Windows

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.

Configuration

max_dimensions:

  • max_width x max_height for which the pop-up is considered too big and should be resized, (default: [320, 240]).

search_mode:

  • "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.

recursive:

  • 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_formats:

  • all image formats to look for, (default: ["png", "jpg", "jpeg", "bmp", "gif", "ico", "svg", "svgz", "webp"]).

formats_to_convert:

  • images that require conversion before rendering, (default: [".svg", ".svgz", ".webp"]).

Notes

  • if "recursive": true the path part is irrelevant, if you don't like this behavior you can set this to false and/or set "search_mode" to "file".
  • "recursive" is only relevant if "search_mode" is set to "project".

Requirements

  • to preview images that need conversion the plugin requires Imagemagick and that magick command is in your path.

Contribute

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.