我开始为Sublime Text 2编写插件.
我在“Packages / RailsQuick”中创建了一个新文件夹
并创建了2个文件:
RailsQuick.py
import sublime,sublime_plugin
class GeneratorsCommand(sublime_plugin.WindowCommand):
def run(self):
self.window.show_quick_panel(["test"],None)
RailsQuick.sublime的命令
[
{
"caption": "RailsQuick: Generators","command": "rails_quick_generators"
}
]
问题是我找不到RailsQuick:Command Platte中的生成器(CTRL SHIFT P)
保存两个文件后的控制台日志:
Writing file /home/danpe/.config/sublime-text-2/Packages/RailsQuick/RailsQuick.py with encoding UTF-8
Reloading plugin /home/danpe/.config/sublime-text-2/Packages/RailsQuick/RailsQuick.py
Writing file /home/danpe/.config/sublime-text-2/Packages/RailsQuick/RailsQuick.sublime-commands with encoding UTF-8
我究竟做错了什么 ?
最佳答案