Sublime Forum

Setting hide tabs state

#1

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:

sublime.active_window().run_command("toggle_tabs")

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

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

Is there other way around to do it using Sublime 2 API?

0 Likes