Home Download Buy Blog Forum Support

Auto-add detected plugin commands to Command Pallete

Auto-add detected plugin commands to Command Pallete

Postby robertcollier4 on Tue Mar 26, 2013 2:24 pm

It is always quite cumbersome to me that I have to always add each command definition manually into a .sublime-commands file if I want to be able to use it from the command pallete.

I recommend a new option be created - "Auto Populate Command Pallete". If set to true - then in addition to populating the command pallete from commands found in .sublime-commands files - any commands that are found in plugin .py files will also be automatically added so that the command pallete represents a complete working set of all available and possible commands available to the user at that current time.

It could get the caption for the command from a "description()" method in the class - otherwise if no "description()" method is there it could just use the command name as the caption. Also If a user wanted to not have certain commands show up on the command pallette - they could add them to a "command_pallete_exclude list".
Posts: 150
Joined: Sun Feb 24, 2013 5:37 pm

Re: Auto-add detected plugin commands to Command Pallete

Postby bizoo on Tue Mar 26, 2013 2:37 pm


Adding them to Command Palette is probably not very useful:

Some commands require parameters which is difficult to enter by hand.
Some commands are not intended to be used by users, but are used internally by plugins.
And some commands are completely useless in the Command Palette (cursor move, ...).

So IMHO the best way to manage them is via a .sublime-commands file.
Posts: 958
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: Auto-add detected plugin commands to Command Pallete

Postby jps on Wed Mar 27, 2013 12:35 am

The expectation is that each plugin will have a .sublime-commands file, and it will be filled with the entries that the plugin would like to be added to the command palette.
Site Admin
Posts: 3217
Joined: Wed Mar 19, 2008 12:33 pm

Return to Ideas and Feature Requests

Who is online

Users browsing this forum: No registered users and 7 guests