Home Download Buy Blog Forum Support

Sidebar hide/show

Sidebar hide/show

Postby schmurfy on Sat Aug 04, 2012 11:26 am

Hi,
I tried to create a plugin to open a new window with the sidebar visible but except toggle_sidebar I found nothing...
Is there a way to either detect if the sidebar is visible to "toggle" it if needed or directly call a command to show/hide it ?


I also have another related question:
I usually hide the sidebar when I am working on my projects but I would like to have the sidebar visible when I open a folder from the command line, is there a way to do so ?
schmurfy
 
Posts: 3
Joined: Sat Aug 04, 2012 11:18 am

Re: Sidebar hide/show

Postby REU on Sat Aug 04, 2012 2:20 pm

Code: Select all
sublime.active_window().run_command('toggle_side_bar')
REU
 
Posts: 3
Joined: Sat Aug 04, 2012 2:19 pm

Re: Sidebar hide/show

Postby schmurfy on Sun Aug 05, 2012 1:23 pm

As I said I am looking for something which can hide or show the sidebar without knowing its current state or a way to find its current state so I can use toggle to hide/show it.
I don't want to toggle the sidebar I want to specifically hide OR show it as I want.
schmurfy
 
Posts: 3
Joined: Sat Aug 04, 2012 11:18 am

Re: Sidebar hide/show

Postby REU on Thu Aug 09, 2012 2:12 pm

REU
 
Posts: 3
Joined: Sat Aug 04, 2012 2:19 pm

Re: Sidebar hide/show

Postby schmurfy on Fri Aug 10, 2012 11:51 am

Nice solution if it works :)
I will give it a try, thanks.
schmurfy
 
Posts: 3
Joined: Sat Aug 04, 2012 11:18 am


Return to Plugin Development

Who is online

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