Home Download Buy Blog Forum Support

How do you determine if tabs are being shown?

How do you determine if tabs are being shown?

Postby segfault on Wed Feb 08, 2012 10:18 pm

I'm trying to come up with a quick plugin for Sublime Text 2 that will hide the tab bar when only one file is open. I found the command to toggle the tab bar on and off, but without knowing what state it is in initially my plugin gets confused.

Code is here: http://pastie.org/3344341

Does anyone know a way to determine the initial state of the tabs?

Thanks,
dwarburton
segfault
 
Posts: 7
Joined: Thu Feb 02, 2012 2:37 pm

Re: How do you determine if tabs are being shown?

Postby freewizard on Tue Feb 21, 2012 7:06 am

+1 hide tab when only one file is useful and intuitive
using Sublime Text 3 dev in OS X 10.8
my ST packages: https://github.com/freewizard
freewizard
 
Posts: 36
Joined: Wed Feb 09, 2011 4:14 am


Return to Plugin Development

Who is online

Users browsing this forum: Yahoo [Bot] and 15 guests