def replace_view_text(view, new_text): view.run_command('no_dialogs_replace_helper', {'new_text': new_text})