Sublime Forum

How do I view what package commands are available?

#1

[Part of way too complex earlier post, sorry!]

How do I view the commands available in the current package? I.e. if I’m using CoffeeScript, I can create a class template via cla but what if I don’t know that and need to see the project commands and shortcuts?

Thanks … and sorry to be so noob

– Owen

0 Likes

#2

Owen,
Find the “Better CoffeeScript.sublime-package” under ‘Installed Packages’ and copy it off somewhere. It’s actually a ‘zip’ file. Unzip it and then you can see the files in it.
For instance, here’s what I see in “/Keymaps/Default (Windows).sublime-keymap”:

{"keys": "alt+shift+s"], "command": "check_syntax"}

, {“keys”: “alt+shift+r”], “command”: “run_script”}
, {“keys”: “alt+shift+t”], “command”: “run_cake_task”}
, {“keys”: “alt+shift+c”], “command”: “compile”}
, {“keys”: “alt+shift+d”], “command”: “compile_and_display”, “args”: {“opt”: “-p”}}
, {“keys”: “alt+shift+l”], “command”: “compile_and_display”, “args”: {“opt”: “-t”}}
, {“keys”: “alt+shift+n”], “command”: “compile_and_display”, “args”: {“opt”: “-n”}}
, {“keys”: “alt+shift+w”], “command”: “toggle_watch”}
, {“keys”: “alt+shift+z”], “command”: “toggle_output_panel”}
]
You might also check this older post about available commands:
viewtopic.php?f=2&t=11217&p=53810&hilit=available+commands#p53810
(I found that by searching for “available commands” in the forum search field. I remembered seeing it before at some point.)
Dave

0 Likes

#3

If you don’t want to extract manually, you may also want to use github.com/skuroda/PackageResourceViewer. It works in both ST2 and ST3.

0 Likes

#4

Cool. Thanks!

0 Likes