ctrl+shift+p filters: :st2 :st3 :win :osx :linux
浏览

自动包重加载

randy3k 全部

在开发Sublime Text包时,自动重新加载子模块。

详细信息

安装

  • 总计 5K
  • Win 3K
  • Mac 1K
  • Linux 765
8月6日 8月5日 8月4日 8月3日 8月2日 8月1日 7月31日 7月30日 7月29日 7月28日 7月27日 7月26日 7月25日 7月24日 7月23日 7月22日 7月21日 7月20日 7月19日 7月18日 7月17日 7月16日 7月15日 7月14日 7月13日 7月12日 7月11日 7月10日 7月9日 7月8日 7月7日 7月6日 7月5日 7月4日 7月3日 7月2日 7月1日 6月30日 6月29日 6月28日 6月27日 6月26日 6月25日 6月24日 6月23日 6月22日
Windows 1 1 2 0 0 0 1 0 0 0 0 2 0 0 0 1 0 1 0 0 1 0 0 0 0 0 0 0 1 2 0 1 1 1 0 1 0 1 1 0 1 0 0 0 1 0
Mac 1 1 0 0 0 2 0 0 2 0 0 0 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 0 2
Linux 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 1 0 0 0 1 1 1 0 0 0 0 3 0 1 0 0 0 0 0 0 0 1 1 0
012348月6日8月3日7月31日7月28日7月25日7月22日7月19日7月16日7月13日7月10日7月7日7月4日7月1日6月28日6月25日6月22日8月6日 Linux: 0 Mac: 1 Windows: 18月5日 Linux: 1 Mac: 1 Windows: 18月4日 Linux: 0 Mac: 0 Windows: 28月3日 Linux: 0 Mac: 0 Windows: 08月2日 Linux: 0 Mac: 0 Windows: 08月1日 Linux: 1 Mac: 2 Windows: 07月31日 Linux: 0 Mac: 0 Windows: 17月30日 Linux: 0 Mac: 0 Windows: 07月29日 Linux: 0 Mac: 2 Windows: 07月28日 Linux: 0 Mac: 0 Windows: 07月27日 Linux: 0 Mac: 0 Windows: 07月26日 Linux: 0 Mac: 0 Windows: 27月25日 Linux: 0 Mac: 1 Windows: 07月24日 Linux: 0 Mac: 0 Windows: 07月23日 Linux: 0 Mac: 0 Windows: 07月22日 Linux: 0 Mac: 0 Windows: 17月21日 Linux: 0 Mac: 0 Windows: 07月20日 Linux: 0 Mac: 1 Windows: 17月19日 Linux: 0 Mac: 1 Windows: 07月18日 Linux: 2 Mac: 0 Windows: 07月17日 Linux: 0 Mac: 0 Windows: 17月16日 Linux: 0 Mac: 0 Windows: 07月15日 Linux: 1 Mac: 0 Windows: 07月14日 Linux: 0 Mac: 0 Windows: 07月13日 Linux: 0 Mac: 0 Windows: 07月12日 Linux: 0 Mac: 0 Windows: 07月11日 Linux: 1 Mac: 0 Windows: 07月10日 Linux: 1 Mac: 0 Windows: 07月9日 Linux: 1 Mac: 0 Windows: 17月8日 Linux: 0 Mac: 0 Windows: 27月7日 Linux: 0 Mac: 0 Windows: 07月6日 Linux: 0 Mac: 0 Windows: 17月5日 Linux: 0 Mac: 0 Windows: 17月4日 Linux: 3 Mac: 0 Windows: 17月3日 Linux: 0 Mac: 0 Windows: 07月2日 Linux: 1 Mac: 0 Windows: 17月1日 Linux: 0 Mac: 1 Windows: 06月30日 Linux: 0 Mac: 0 Windows: 16月29日 Linux: 0 Mac: 0 Windows: 16月28日 Linux: 0 Mac: 1 Windows: 06月27日 Linux: 0 Mac: 0 Windows: 16月26日 Linux: 0 Mac: 0 Windows: 06月25日 Linux: 0 Mac: 0 Windows: 06月24日 Linux: 1 Mac: 1 Windows: 06月23日 Linux: 1 Mac: 0 Windows: 16月22日 Linux: 0 Mac: 2 Windows: 08月6日 Linux: 0 Mac: 1 Windows: 18月5日 Linux: 1 Mac: 1 Windows: 18月4日 Linux: 0 Mac: 0 Windows: 28月3日 Linux: 0 Mac: 0 Windows: 08月2日 Linux: 0 Mac: 0 Windows: 08月1日 Linux: 1 Mac: 2 Windows: 07月31日 Linux: 0 Mac: 0 Windows: 17月30日 Linux: 0 Mac: 0 Windows: 07月29日 Linux: 0 Mac: 2 Windows: 07月28日 Linux: 0 Mac: 0 Windows: 07月27日 Linux: 0 Mac: 0 Windows: 07月26日 Linux: 0 Mac: 0 Windows: 27月25日 Linux: 0 Mac: 1 Windows: 07月24日 Linux: 0 Mac: 0 Windows: 07月23日 Linux: 0 Mac: 0 Windows: 07月22日 Linux: 0 Mac: 0 Windows: 17月21日 Linux: 0 Mac: 0 Windows: 07月20日 Linux: 0 Mac: 1 Windows: 17月19日 Linux: 0 Mac: 1 Windows: 07月18日 Linux: 2 Mac: 0 Windows: 07月17日 Linux: 0 Mac: 0 Windows: 17月16日 Linux: 0 Mac: 0 Windows: 07月15日 Linux: 1 Mac: 0 Windows: 07月14日 Linux: 0 Mac: 0 Windows: 07月13日 Linux: 0 Mac: 0 Windows: 07月12日 Linux: 0 Mac: 0 Windows: 07月11日 Linux: 1 Mac: 0 Windows: 07月10日 Linux: 1 Mac: 0 Windows: 07月9日 Linux: 1 Mac: 0 Windows: 17月8日 Linux: 0 Mac: 0 Windows: 27月7日 Linux: 0 Mac: 0 Windows: 07月6日 Linux: 0 Mac: 0 Windows: 17月5日 Linux: 0 Mac: 0 Windows: 17月4日 Linux: 3 Mac: 0 Windows: 17月3日 Linux: 0 Mac: 0 Windows: 07月2日 Linux: 1 Mac: 0 Windows: 17月1日 Linux: 0 Mac: 1 Windows: 06月30日 Linux: 0 Mac: 0 Windows: 16月29日 Linux: 0 Mac: 0 Windows: 16月28日 Linux: 0 Mac: 1 Windows: 06月27日 Linux: 0 Mac: 0 Windows: 16月26日 Linux: 0 Mac: 0 Windows: 06月25日 Linux: 0 Mac: 0 Windows: 06月24日 Linux: 1 Mac: 1 Windows: 06月23日 Linux: 1 Mac: 0 Windows: 16月22日 Linux: 0 Mac: 2 Windows: 08月6日 Linux: 0 Mac: 1 Windows: 18月5日 Linux: 1 Mac: 1 Windows: 18月4日 Linux: 0 Mac: 0 Windows: 28月3日 Linux: 0 Mac: 0 Windows: 08月2日 Linux: 0 Mac: 0 Windows: 08月1日 Linux: 1 Mac: 2 Windows: 07月31日 Linux: 0 Mac: 0 Windows: 17月30日 Linux: 0 Mac: 0 Windows: 07月29日 Linux: 0 Mac: 2 Windows: 07月28日 Linux: 0 Mac: 0 Windows: 07月27日 Linux: 0 Mac: 0 Windows: 07月26日 Linux: 0 Mac: 0 Windows: 27月25日 Linux: 0 Mac: 1 Windows: 07月24日 Linux: 0 Mac: 0 Windows: 07月23日 Linux: 0 Mac: 0 Windows: 07月22日 Linux: 0 Mac: 0 Windows: 17月21日 Linux: 0 Mac: 0 Windows: 07月20日 Linux: 0 Mac: 1 Windows: 17月19日 Linux: 0 Mac: 1 Windows: 07月18日 Linux: 2 Mac: 0 Windows: 07月17日 Linux: 0 Mac: 0 Windows: 17月16日 Linux: 0 Mac: 0 Windows: 07月15日 Linux: 1 Mac: 0 Windows: 07月14日 Linux: 0 Mac: 0 Windows: 07月13日 Linux: 0 Mac: 0 Windows: 07月12日 Linux: 0 Mac: 0 Windows: 07月11日 Linux: 1 Mac: 0 Windows: 07月10日 Linux: 1 Mac: 0 Windows: 07月9日 Linux: 1 Mac: 0 Windows: 17月8日 Linux: 0 Mac: 0 Windows: 27月7日 Linux: 0 Mac: 0 Windows: 07月6日 Linux: 0 Mac: 0 Windows: 17月5日 Linux: 0 Mac: 0 Windows: 17月4日 Linux: 3 Mac: 0 Windows: 17月3日 Linux: 0 Mac: 0 Windows: 07月2日 Linux: 1 Mac: 0 Windows: 17月1日 Linux: 0 Mac: 1 Windows: 06月30日 Linux: 0 Mac: 0 Windows: 16月29日 Linux: 0 Mac: 0 Windows: 16月28日 Linux: 0 Mac: 1 Windows: 06月27日 Linux: 0 Mac: 0 Windows: 16月26日 Linux: 0 Mac: 0 Windows: 06月25日 Linux: 0 Mac: 0 Windows: 06月24日 Linux: 1 Mac: 1 Windows: 06月23日 Linux: 1 Mac: 0 Windows: 16月22日 Linux: 0 Mac: 2 Windows: 0

说明文件

源代码
raw.​githubusercontent.​com

自动包重加载

Sublime Text包的开发者可能发现,由于ST在文件被编辑时不会重新加载包的所有子模块,所以在开发包的过程中需要多次关闭和重新打开ST。这个小巧的包可以帮助在不需要重新打开ST的情况下重新加载包。模块的重新加载顺序与Sublime Text加载的顺序完全相同。

安装

Package Control请。

使用方法

要在当前窗口中重新加载包,请使用自动包重加载:重新加载当前项目

要激活在保存*py文件时的重新加载,请使用自动包重加载:切换保存时重新加载。包重加载会从文件路径中猜测包名,以便重新加载子模块和重新加载包。

在重新加载失败时将显示控制台面板,可以通过设置修改这种行为。

添加重新加载当前包构建

建议在您的.sublime-project文件中添加以下内容,以便按下c+b就会触发重新加载动作。

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

附加模块

APR会尽力猜测包的依赖模块。有时,它可能无法检测到所有依赖项。在这些情况下,开发者可以在.package_reloader.json文件中指定额外的需要重新加载的模块。

{
  "dependencies" : ["<module1>", "<module2>"]
}

致谢

本代码来源于Eldar Abusalimov的代码