def run(self, index=None, **args):
command = args.get('command')
active_file_path = self.__active_file_path()
active_folders = sublime.active_window().folders()
if command == 'mlist':
self.__beagle = Phoenix(active_file_path + 'beagle_migrations', self.__patterns(), active_folders)
self.window.show_quick_panel(self.__beagle.descriptions(), self.__open_file)
else:
if not active_folders:
active_folders = os.path.split(active_file_path)[0]
sublime.error_message("SideBar is empty!")
if active_file_path:
if self.__patterns():
self.__beagle = Phoenix(active_file_path, self.__patterns(), active_folders)
self.window.show_quick_panel(self.__beagle.descriptions(), self.__open_file)
else:
self.__status_msg("Patterns are not loaded!")
else:
self.__status_msg("No open files")
评论列表
文章目录