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

Package Reloader

by csch0 ST2/ST3

Reloader of dependency modules in Sublime Text

Labels development

Details

Installs

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

Readme

Source
raw.​githubusercontent.​com

Package Reloader

A simple reloader to manage the reload process of dependency modules in Sublime Text. The package reloads changes of a class while developing a plugin on the fly without restarting Sublime Text.

Usage

To enable the reload of a certain package you just have to place an empty .build file inside the package directory. You do not have to fill the file by yourself, just save a file inside the plugin and Package Reloader will fill all the basic informations. You can adjust the loading order with mods_load_order after the first run. After the first run (save of a file in that project) .build could look like this:

{
    "automatic_order": true,
    "iterations": 1,
    "mods_load_order":
    [
        "File Navigator.py",
        "file_navigator/__init__.py",
        "file_navigator/tools.py"
    ]
}

The automatic_order can true or false, if you are using true the order will be automatically arranged every time you are adding a new source file. If you are using false, the new item will be just add the end of the list and you can change that on your own. If you for example need to load the file_navigator/tools.py before File Navigator.py just change the .build like this:

{
    "automatic_order": false,
    "iterations": 1,
    "mods_load_order":
    [
        "file_navigator/tools.py",
        "File Navigator.py",
        "file_navigator/__init__.py"
    ]
}

Installation

Using Package Control:

  • Bring up the Command Palette (Command+Shift+P on OS X, Control+Shift+P on Linux/Windows).
  • Select Package Control: Install Package.
  • Select Package Reloader to install.

Not using Package Control:

  • Save files to the Packages/Package Reloader directory, then relaunch Sublime:
    • Linux: ~/.config/sublime-text-2|3/Packages/Package Reloader
    • Mac: ~/Library/Application Support/Sublime Text 2|3/Packages/Package Reloader
    • Windows: %APPDATA%/Sublime Text 2|3/Packages/Package Reloader

Donating

Support this project via gittip or paypal.

License

All files in this package is licensed under the MIT license.

Copyright © 2013 Chris chris@latexing.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.