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

Automatic​Package​Reloader

by randy3k ST3

Automaticly reload submodules while developing a Sublime Text package.

Details

Installs

  • Total 825
  • Win 540
  • OS X 157
  • Linux 128
Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5
Windows 1 1 1 1 5 3 3 0 3 2 7 6 2 2 1 1 3 12 9 3 2 3 1 4 2 2 0 3 2 0 7 4 1 1 0 6 3 2 1 1 2 1 3 2 2 3
OS X 0 0 0 0 0 0 0 1 0 0 2 1 0 2 0 1 1 0 1 0 1 0 2 1 0 0 0 0 1 0 1 0 2 0 0 2 1 1 0 1 0 1 0 1 0 1
Linux 0 2 0 0 2 0 0 0 1 1 0 0 0 1 0 0 2 4 0 1 0 0 0 0 1 1 0 0 0 2 4 0 0 0 0 0 1 0 0 2 1 0 0 0 1 0

Readme

Source
raw.​githubusercontent.​com

Automatic Package Reloader

Sublime Text package developers may find themselves have to close and re-open ST multiple times when developing a package since ST doesn't reload all the submodules of a package when the files are edited. This tiny package helps in reloading the package without the need of reopening ST. The reloading order of the modules is in the exact same order as if they are loaded by Sublime Text.

Installation

Package Control please.

Usage

To reload the package in the current window, use Automatic Package Reloader: Reload Current Project.

To activate reload on saving a *py file, use Automatic Package Reloader: Toggle Reload On Save. Package Reloader will guess the package name from the file path in order to reload the submodules and to reload the package.

The console panel will be shown when reloading fails, this behavior can be modified by the settings.

Add Reload Current Package build

It is recommended to add the following in your .sublime-project file so that c+b would invoke the reload action.

"build_systems":
    [
      {
        "name": "Reload Current Package",
        "target": "package_reloader_reload",
      }
    ]

Credits

This is derived from the code of Eldar Abusalimov.