Home Download Buy Blog Forum Support

Setting hide tabs state

Setting hide tabs state

Postby lowliet on Tue Feb 12, 2013 7:42 pm

Hi,

I'm struggling to write simple plugin to hide tabs bar when there is only one file opened and my problem is that I can toggle hide/show tabs option, but I'm unable to set it to specified state:

Code: Select all
sublime.active_window().run_command("toggle_tabs")


Is there any way to determine tabs bar state using settings:

Code: Select all
window.run_command("echo", {"Tabs": view.settings().get('hideTabs')}) #?


Is there other way around to do it using Sublime 2 API?
lowliet
 
Posts: 1
Joined: Tue Feb 12, 2013 7:24 pm

Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot], le N?KO, Yahoo [Bot] and 20 guests