def run(self, edit, external_id, text): for rv in manager.find_repl(external_id): rv.append_input_text(text) break # send to first repl found else: sublime.error_message( "Cannot find REPL for '{}'".format(external_id))
def run(self, edit, external_id, text): for rv in manager.find_repl(external_id): rv.append_input_text(text) rv.enter() break # send to first repl found else: sublime.error_message("Cannot find REPL for '{}'".format(external_id))
def run(self, edit, external_id, text, with_auto_postfix=True): for rv in manager.find_repl(external_id): if with_auto_postfix: text += rv.repl.cmd_postfix if sublime.load_settings(SETTINGS_FILE).get('show_transferred_text'): rv.append_input_text(text) rv.adjust_end() SENDERS[external_id](rv.repl, text, self.view) break else: sublime.error_message("Cannot find REPL for '{}'".format(external_id))
def run(self, edit, external_id, text, with_auto_postfix=True): for rv in manager.find_repl(external_id): if with_auto_postfix: text += rv.repl.cmd_postfix if sublime.load_settings(SETTINGS_FILE).get( 'show_transferred_text'): rv.append_input_text(text) rv.adjust_end() SENDERS[external_id](rv.repl, text, self.view) break else: sublime.error_message( "Cannot find REPL for '{}'".format(external_id))