Skip to content
This repository

LiveReload plugin for SublimeText

branch: devel

Merge pull request #84 from OlivierBlanvillain/patch-1

Improve #Using by changing a few words and splitting the snippet in two lines.
latest commit 169c8212a5
Janez Troha authored
Octocat-spinner-32 docs Merge branch 'sm3' into devel July 12, 2013
Octocat-spinner-32 messages Merge branch 'sm3' into devel July 12, 2013
Octocat-spinner-32 server Merge branch 'sm3' into devel July 12, 2013
Octocat-spinner-32 snippets Refactoring, custom settings class(fix win thread-safty issue) August 29, 2012
Octocat-spinner-32 test Fixes many bugs for SM3 July 12, 2013
Octocat-spinner-32 web Merge branch 'sm3' into devel July 12, 2013
Octocat-spinner-32 .gitignore Add docs, compass plugin from @Grafikart closes #39 February 18, 2013
Octocat-spinner-32 .travis.yml Fixes many bugs for SM3 July 12, 2013
Octocat-spinner-32 CoffeescriptPlugin.py Merge branch 'sm3' into devel July 12, 2013
Octocat-spinner-32 CommandAPI.py Fixes many bugs for SM3 July 12, 2013
Octocat-spinner-32 CompassPlugin.py Fix overriding default settings of Compass Plugin July 17, 2013
Octocat-spinner-32 Default.sublime-commands Fixes many bugs for SM3 July 12, 2013
Octocat-spinner-32 LESSPlugin.py Starting coffeescript and LESS plugins March 21, 2013
Octocat-spinner-32 LiveReload.py Fixes settings loading for SM3, compass plugin overrides see #43 February 25, 2013
Octocat-spinner-32 LiveReload.sublime-settings Fixes many bugs for SM3 July 12, 2013
Octocat-spinner-32 Main.sublime-menu Fix plugin API add on_receive May 22, 2012
Octocat-spinner-32 Makefile Fixes many bugs for SM3 July 12, 2013
Octocat-spinner-32 README.md Improve #Using by changing a few words and splitting the snippet in t… August 26, 2013
Octocat-spinner-32 SimpleReloadCallback.py add python3 support February 21, 2013
Octocat-spinner-32 SimpleReloadPlugin.py Refactoring, custom settings class(fix win thread-safty issue) August 29, 2012
Octocat-spinner-32 SimpleReloadPluginDelay.py Simple delay refresh plugin September 06, 2012
Octocat-spinner-32 SimpleWSCallback.py fix modified source July 18, 2013
Octocat-spinner-32 __init__.py add python3 support February 21, 2013
Octocat-spinner-32 lr.sublime-project Fixes many bugs for SM3 July 12, 2013
Octocat-spinner-32 messages.json Support for new version of protocol (only reload command) April 13, 2012
Octocat-spinner-32 pylint.rc Fixes many bugs for SM3 July 12, 2013
Octocat-spinner-32 requirements.txt Fixes many bugs for SM3 July 12, 2013
README.md

Build Status Fattrme Gittip

LiveReload for Sublime Text 3

A web browser page reloading plugin for the Sublime Text 3 editor.

Installing

Open Terminal and

Linux users

cd ~/.config/sublime-text-3/Packages
rm -rf LiveReload
git clone -b devel https://github.com/dz0ny/LiveReload-sublimetext2.git LiveReload

OSX users

cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/
rm -rf LiveReload
git clone -b devel https://github.com/dz0ny/LiveReload-sublimetext2.git LiveReload

Using

Enable the desired plug-ins via Command Palette (Ctrl+Shift+P) and add livereload.js to your html document:

<script>document.write('<script src="http://' + (location.host || 'localhost')
.split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')</script>

Alternatively you can use one of the browser extensions listed here: http://go.livereload.com/extensions.

Available plug-ins:

  • Compass Preprocessor, compiles .scss, .sass and refreshes page when file is compiled
  • Less Preprocessor, compiles .less and refreshes page when file is compiled
  • CoffeeScript Preprocessor, compiles .coffee and refreshes page when file is compiled
  • Simple Reload, refresh page when file is saved
  • Simple Reload with delay(400ms), wait 400ms then refresh page, when file is saved

Examples

  • Simple Reload from http GET request, reloads page on visit to http://localhost:35729/callback/simplereloadplugincallback/on_post_compile
  • Send content on change, sends file content to browser console

Plug-in api

https://livereload-for-sublime-text.readthedocs.org/en/latest/

Something went wrong with that request. Please try again.