Skip to content

Instantly share code, notes, and snippets.

@rchl
Last active April 20, 2020 21:49
Show Gist options
  • Select an option

  • Save rchl/30dd3ebb6827dbd114c651b93f74dca2 to your computer and use it in GitHub Desktop.

Select an option

Save rchl/30dd3ebb6827dbd114c651b93f74dca2 to your computer and use it in GitHub Desktop.
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)
@rchl
Copy link
Copy Markdown
Author

rchl commented Apr 20, 2020

Run with window.run_command('example')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment