sublimehq / sublime_text

Issue tracker for Sublime Text
https://www.sublimetext.com
802 stars 38 forks source link

Ability to create user defined $variables to be used in menu files. #3428

Open Ultra-Instinct-05 opened 4 years ago

Ultra-Instinct-05 commented 4 years ago

Problem description

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.

FichteFoll commented 4 years ago

Related: #15