Home Download Buy Blog Forum Support

new view into file via plugin?

new view into file via plugin?

Postby rab on Fri Nov 16, 2012 12:36 am

open_file(file_name, <flags>):Opens the named file, and returns the corresponding view. If the file is already opened, it will be brought to the front.

Is there any way that behavior can be configured with a flag? If the file is already opened, I would like my plugin to be able to open the current file in a separate view and move that view to a different group, so that it is visible from two separate views.
rab
 
Posts: 4
Joined: Wed Oct 19, 2011 10:57 pm

Re: new view into file via plugin?

Postby C0D312 on Fri Nov 16, 2012 3:19 am

self.window.run_command("clone_file")
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: new view into file via plugin?

Postby rab on Fri Nov 16, 2012 5:54 pm

Thanks. Is there documentation available on clone_file?
rab
 
Posts: 4
Joined: Wed Oct 19, 2011 10:57 pm


Return to Plugin Development

Who is online

Users browsing this forum: Google [Bot] and 3 guests