In case of Main.sublime-menu, there are several variables defined in the command key, which is presented below :-
Variables
Description
$file_types
Expands to all available syntax definitions
$dictionaries
Expands to available dictionaries
$build_systems
Expands to available build systems
$macros
Expands to available macros
When these are defined for the command key in the menu file, they expand in a sub menu showing all available respective resource files.
The problem is there is no means through the API to create such variables & these are hard coded.
Preferred solution
Some means (preferably through the API) to create such variables for use in command key for menu files. This could be really useful where we need to show a list of options in the menu file without the need to create individual entries for each which is cumbersome.
Problem description
In case of
Main.sublime-menu
, there are several variables defined in thecommand
key, which is presented below :-When these are defined for the
command
key in the menu file, they expand in a sub menu showing all available respective resource files.The problem is there is no means through the API to create such variables & these are hard coded.
Preferred solution
Some means (preferably through the API) to create such variables for use in
command
key for menu files. This could be really useful where we need to show a list of options in the menu file without the need to create individual entries for each which is cumbersome.