Sublime Forum

Discovering commands and their parameters

#1

Is there some way to see a list of the built-in commands and what parameters they take?

Many times, I’m wanting a keybinding to do something and, unless it’s in the default keymap, I have no idea what the command is.

Looking around, I see that you can

sublime.log_commands(True)

if there is already a menu command for what you want. I’ve never found this that useful though for mouse operations or for showing the available options.

Is there some Python magic to show all the global commands?

0 Likes

#2

Available sources are:

3 Likes

#3

Certainly! In Sublime Text, discovering commands and their parameters can indeed be a bit tricky. The sublime.log_commands(True) approach you mentioned is helpful for logging commands executed via the UI, but it does have its limitations, especially for mouse operations or commands not linked to menu items.

0 Likes