2

I'm writing a plugin which has a command creating 3 files.

I want the 3 files to be opened and tabbed in Sublime.

I thought this would do the trick but only one file is opened.

self.view.window().open_file(view_path, 1) self.view.window().open_file(controller_path, 1) self.view.window().open_file(base_coffee, 1) 

Any insight please?

2
  • Is the source for your plugin public? I am working on a plugin that would provide similar functionality so your code would be a good starting point Commented Dec 4, 2012 at 16:03
  • @hbtest: here you go: github.com/apneadiving/TextmasterSublimePlugin Commented Dec 4, 2012 at 16:04

1 Answer 1

1

At last I found it:

initial_window = self.view.window() initial_window.open_file(view_path, 1) initial_window.open_file(controller_path, 1) initial_window.open_file(base_coffee, 1) 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.