Home Download Buy Blog Forum Support

Hide sidebar command not working?

Hide sidebar command not working?

Postby handycam on Wed Feb 08, 2012 1:31 pm

In 2175, I just tried to hide the sidebar (something I have done in the past) with command-K, command-B.

I get "no build system" dialog. I can hide and show it from the menu though. Why is this?
Mac OS 10.11b1
ST 3 (3092)
Posts: 277
Joined: Tue Jan 03, 2012 2:42 pm

Re: Hide sidebar command not working?

Postby Esente on Fri Feb 10, 2012 10:26 pm

Well, because those hotkeys are bound to different commands (command-B is to build the current file, which gave you the "no build system" dialog you saw).

What I did was go to Preferences -> Key Bindings - User, and set my hotkey, something like this:

{ "keys": ["ctrl+\\"], "command": "toggle_side_bar" }
Posts: 26
Joined: Mon Aug 16, 2010 7:20 pm

Re: Hide sidebar command not working?

Postby jps on Fri Feb 10, 2012 11:26 pm

It works by default, check you don't have anything bound to Cmd+K
Site Admin
Posts: 3217
Joined: Wed Mar 19, 2008 12:33 pm

Re: Hide sidebar command not working?

Postby ian on Sun May 20, 2012 1:18 pm

This doesn't seem to work for me either. I get the same message regarding the build system. If I look in Preferences > Key Bindings > Default (I haven't touched anything in here, I use the User file) I see the following mappings which are related to the same keystrokes:

//Line 17
{ "keys": ["super+k", "super+b"], "command": "toggle_side_bar" },

// Line 230
{ "keys": ["super+b"], "command": "build" },

// Lines 509 - 515
{ "keys": ["super+k", "super+u"], "command": "upper_case" },
{ "keys": ["super+k", "super+l"], "command": "lower_case" },
{ "keys": ["super+k", "super+space"], "command": "set_mark" },
{ "keys": ["super+k", "super+a"], "command": "select_to_mark" },
{ "keys": ["super+k", "super+w"], "command": "delete_to_mark" },
{ "keys": ["super+k", "super+x"], "command": "swap_with_mark" },
{ "keys": ["super+k", "super+g"], "command": "clear_bookmarks", "args": {"name": "mark"} },

These look like they clash. Is this what everyone else has in their Default Key Bindings? If so why are their clashing commands?
Posts: 2
Joined: Mon Mar 12, 2012 1:58 pm

Re: Hide sidebar command not working?

Postby Floating.Point on Thu Mar 28, 2013 9:02 am

Yeah I am seeing this too, it's weird... so many super+k bindings by default. Surely this can't be right? As a (brand new) user of SublimeText, I would prefer to learn the default keybindings, rather than set up custom ones. But obviously the default keybindings are broken on mac! Anyone able to look into this for us?
Posts: 1
Joined: Tue Mar 26, 2013 11:01 am

Re: Hide sidebar command not working?

Postby fjl on Fri Mar 29, 2013 11:34 am

The default key bindings are not broken.

A key binding like ["super+k", "super+b"] specifies a key sequence.
So you'd press Super+K, release the keys, then press Super+B to hide the sidebar.
Key sequences are a very common thing that both Emacs and Microsoft Visual Studio make heavy use of.

The key sequence implementation in Sublime Text has a certain timeout.
If you press Super+K, wait 3 seconds, then press Super+B, it will not recognize the
sequence but invoke the key binding for Build, which is bound to Super+B alone.
Posts: 36
Joined: Wed Dec 28, 2011 12:41 am

Return to General Discussion

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 10 guests