Sublime Forum

I wanna know where the command is!

#1

my question is where the all command is.

for example,

I know the “Sublime Text 2\Data\Packages\Default\Default (Windows).sublime-keymap” file which the all default key is saved.

In that file, i found the “new_window” command which the keymap is “ctrl+shift+n”.

Then i was really curious about the command “new_window”, so i searched the keyword in “Sublime Text 2” folder,

and I found the file “Main.sublime-menu” and i noticed that many command is there.

So i think that if i wanna mapping the command to some key, i’ll go to the “Main.sublime-menu” and found the command string.

but about some command like “toggle_case_sensitive”, I cannot find anywhere about the command. :cry:

so, if i wanna keymap some command which i cannot found in the “Main.sublime-menu” file, how would i know what the command is?

0 Likes

#2

There is no exhaustive command list that I’m aware of. However between the docs and checking the default keyboard map and menu files, Any command you could fire in Sublime can be logged into the console with the following commands:

In the console:

sublime.log_commands(True)
sublime.log_input(True)

False parameter turns them off again :smile:

0 Likes