Home Download Buy Blog Forum Support

Differentiate between views that have their own tabs

Differentiate between views that have their own tabs

Postby bgmort on Fri Sep 28, 2012 7:01 pm

When you begin to type a filename in ST using the Goto menu, the top file is previewed in a new view without a tab, then when you select a file to open, it is given its own tab. I am trying to tweak some of my plugins that run when the file opens so they don't run during this preview phase. That lead me to investigate the sublime text plugin api, and I have not found what I'm looking for, which has led me here. The sublime.View class appears to be where I would need to look for either an event that fires when a file is opened into a tab, or a flag that tells me if the view has a tab or not, but I can find neither. Is this information available somewhere?

Brian
bgmort
 
Posts: 1
Joined: Fri Sep 28, 2012 6:50 pm

Re: Differentiate between views that have their own tabs

Postby travmik on Sun Mar 03, 2013 4:29 pm

Also very interesting in this problem.

Is there some more detailed doc about Views and their lifecycle?
travmik
 
Posts: 13
Joined: Sun Mar 03, 2013 4:25 pm


Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 1 guest