diff --git a/utils/info.py b/utils/info.py index 4640f8d70..2acdd6870 100644 --- a/utils/info.py +++ b/utils/info.py @@ -89,5 +89,10 @@ def run(self): """ % info ) - sublime.message_dialog(msg + '\nInfo has been copied to the clipboard.') - sublime.set_clipboard(msg) + view = sublime.active_window().active_view() + + def copy_and_hide(msg): + sublime.set_clipboard(msg) + view.hide_popup() + + view.show_popup(msg.replace('\n', '
') + '
Copy', on_navigate = copy_and_hide, max_height = 340)