You can add whatever you want to the Command Palette, create a Default.sublime-commands in your user folder based on the content of:
- Code: Select all
\Sublime Text 2\Packages\Default\Default.sublime-commands
You can also use a small plugin to ask the command and run it:
- Code: Select all
import sublime, sublime_plugin
class AskCommandCommand(sublime_plugin.WindowCommand):
def run(self):
def _on_done_cmd(cmd):
self.window.run_command(cmd)
self.window.show_input_panel('Command:', '', _on_done_cmd, None, None)
Note that this example only work for parameters less command, but adding a second prompt for parameters is easy.