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

Hover Image Preview

by alvesjtiago ST3

Sublime Text 3 Plugin for previewing images.

Details

Installs

  • Total 8K
  • Win 5K
  • OS X 2K
  • Linux 867
May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12
Windows 3 3 2 4 13 7 13 12 13 10 21 10 15 8 14 8 7 5 8 6 5 8 2 2 6 5 5 5 3 4 5 4 3 6 4 3 4 1 6 2 6 5 6 6 4 4
OS X 1 1 0 2 1 1 5 6 1 0 6 4 9 2 7 1 3 5 2 2 0 1 1 0 1 4 1 0 3 1 0 1 1 3 2 3 2 2 0 2 2 2 2 2 2 1
Linux 0 0 0 0 0 0 0 2 2 2 5 0 3 3 1 1 2 0 2 2 1 0 0 1 1 3 2 0 0 0 1 1 2 1 0 1 1 0 0 1 2 1 0 0 0 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.