Last active
April 20, 2020 21:49
-
-
Save rchl/30dd3ebb6827dbd114c651b93f74dca2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sublime | |
| import sublime_plugin | |
| class ExampleCommand(sublime_plugin.WindowCommand): | |
| def run(self): | |
| def open_tab(): | |
| sublime.run_command('new_window') | |
| sublime.active_window().open_file(__file__) | |
| window = sublime.active_window() | |
| window.run_command('close_all') | |
| sublime.set_timeout(open_tab, 500) | |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run with
window.run_command('example')