Sublime Forum

Command from sublime-commands file missing in command palette

#1

I can’t get the sublime-commands file to work for me with build 3103.

Following the docs from http://docs.sublimetext.info/en/latest/reference/command_palette.html, I am trying to create custom command palette entries for a particular language.

I have this trivial example as the contents of Packages/User/Python.sublime-commands:

[
	{ "caption": "Hello: Does This Work", "command": "selectAll" }
]

But when I type Ctrl+Shift+P for the palette and type in doesthiswork, there are no matches. The command is not showing up in my command palette.

I tried this in a Python file and in a generic Plain Text file - no difference.

I have tried downloading the portable version to start from scratch (putting the file in Data/Packages/User/Python.sublime-commands) - no difference.

What am I missing?

0 Likes

#2

Never mind, selectAll is not a valid command. Using prompt_add_folder everything works.

0 Likes