{"id":19364502,"url":"https://github.com/math2001/sublime-plugin-reloader","last_synced_at":"2025-02-24T13:13:39.783Z","repository":{"id":74807217,"uuid":"77496437","full_name":"math2001/sublime-plugin-reloader","owner":"math2001","description":"Reload files in your Sublime Text's plugins","archived":false,"fork":false,"pushed_at":"2020-09-06T07:40:28.000Z","size":7,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-06T20:52:27.869Z","etag":null,"topics":["plugin-reloader","sublime-text"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/math2001.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-28T02:25:58.000Z","updated_at":"2018-11-23T16:06:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"677ceb03-4b40-4e47-9a92-f2b201cdc4cc","html_url":"https://github.com/math2001/sublime-plugin-reloader","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/math2001%2Fsublime-plugin-reloader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/math2001%2Fsublime-plugin-reloader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/math2001%2Fsublime-plugin-reloader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/math2001%2Fsublime-plugin-reloader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/math2001","download_url":"https://codeload.github.com/math2001/sublime-plugin-reloader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240483765,"owners_count":19808636,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["plugin-reloader","sublime-text"],"created_at":"2024-11-10T07:37:32.840Z","updated_at":"2025-02-24T13:13:39.760Z","avatar_url":"https://github.com/math2001.png","language":"Python","readme":"# Reload Plugin\n\nReload Plugin is a ... plugin that reloads your Sublime Text's plugins. As you probably know, Sublime Text doesn't load the `.py` files that are more than 2 folders deep (your package folder, if it's deeper, it's ignored).\n\n## Usage\n\nJust add a listener in your package:\n\n```python\nimport sublime\nimport sublime_plugin\nimport os\n\nclass MyPluginDevListner(sublime_plugin.EventListner):\n\n    def on_post_save(self, view):\n        if not (os.path.dirname(__file__) in view.file_name() and\n            view.file_name().endswith('.py')):\n            return\n        sublime.run_command('reload_plugin', {\n            'main': os.path.join(sublime.packages_path(), 'MyPlugin',\n                                 'MyPlugin.py')\n            'scripts': ['functions.py'] # at the root of your plugin,\n            'folders': ['my_plugin_commands'] # all the files will be relaoded\n            'times': 2 # default value: 2,\n            'quiet': True # prevent default output in the console\n        })\n\n```\n\nBy default, it reloads everything twice to make sure that your dependencies are reloaded. If you have imported-importing-from-imported script or something a bit nested, you might want to increase it.\n\nNote: The `.py` in the script name is optional.\n\nA little tip: if you put this command in your main file, you can use the `__file__` variable (`'main': __file__`')\n\n## Install\n\n##### Using git\n\n```bash\ncd \"%APPDATA%\\Sublime Text 3\\Packages\"             # on window\ncd ~/Library/Application\\ Support/Sublime\\ Text\\ 3 # on mac\ncd ~/.config/sublime-text-3                        # on linux\n\ngit clone https://github.com/math2001/sublime-plugin-reloader reload_plugin\n```\n\n##### Using Package Control\n\nBecause it is not available on package control for now, you have to add this repo \"manually\" to your list.\n\n1. Open up the command palette (`ctrl+shift+p`), and find `Package Control: Add Repository`. Then enter the URL of this repo: `https://github.com/math2001/reload_plugin` in the input field.\n2. Open up the command palette again and find `Package Control: Install Package`, and just search for `reload_plugin`. (just a normal install)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmath2001%2Fsublime-plugin-reloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmath2001%2Fsublime-plugin-reloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmath2001%2Fsublime-plugin-reloader/lists"}