def on_repo_selection(self, selection, subsequent_action, **args):
if selection >= 0:
if selection == 0:
self.window.run_command('hide_panel')
_param_on_enter_repo_info = partial(
self.on_enter_repo_info,
subsequent_action=subsequent_action,
**args)
content = sublime.get_clipboard(256)
if content.count(
"/") == 1: # Add a condition to try not to jerperdize irrelevant clipboard content
sublime.set_clipboard(content.strip())
self.window.show_input_panel(
'Enter repo in the format username/repo_name:', '',
_param_on_enter_repo_info, None, None)
else:
self.username, self.repo_name = self.entries[selection].split(
'/')
acquire_repo_info = issue.AcquireRepoInfo(self.username,
self.repo_name)
acquire_repo_info.start()
subsequent_action(**args)
评论列表
文章目录