Home Download Buy Blog Forum Support

"Close All Files" command

"Close All Files" command

Postby evansj on Tue Dec 13, 2011 10:45 am

Hi,

I want to add an entry to my Default (OSX).sublime-keymap file, to close all files when I hit Cmd-Ctrl-W.

Code: Select all
{ "keys": ["super+ctrl+w"], "command": "closeAll" }


I've tried various combinations but haven't found the correct command name. What is it?

I can find the command I need in the Command Palette - "File: Close All". Is there a way to view the "code" versions of commands in the palette?

Thanks

Jon
evansj
 
Posts: 2
Joined: Tue Dec 13, 2011 10:38 am

Re: "Close All Files" command

Postby guillermooo on Tue Dec 13, 2011 10:47 am

Look for "Main.sublime-menu" in the Packages/Default directory. You want the "close_all" command.
guillermooo
 
Posts: 729
Joined: Thu Jul 23, 2009 9:06 am

Re: "Close All Files" command

Postby guillermooo on Tue Dec 13, 2011 10:48 am

I personally create a project (.sublime-project) inside Default so I can switch easily to that directory and look up stuff.
guillermooo
 
Posts: 729
Joined: Thu Jul 23, 2009 9:06 am

Re: "Close All Files" command

Postby evansj on Tue Dec 13, 2011 11:51 am

Thanks guillermooo, that worked perfectly (after restarting ST2). Thanks also for explaining how I can look up commands next time I need one.

Jon
evansj
 
Posts: 2
Joined: Tue Dec 13, 2011 10:38 am


Return to Technical Support

Who is online

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