sublimehq / sublime_text

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

One json to rule all configs #6413

Open ryuukk opened 1 month ago

ryuukk commented 1 month ago

Problem description

When i write a plugin, i don't want to write 54545454 different files for configs

It bloats the folder structure, it's hard to identify the right file to edit, just let me open one single file and do my edits there

Preferred solution

a single file: my-plugin.sublime

{
    // correspond to: my-plugin.sublime-commands
    "commands": {
    },

    // correspond to: my-plugin.sublime-settings
    "settings": {
    },

    // correspond to: my-plugin.sublime-menu
    "menu": {
    },

    // etc..
}

Alternatives

Can't think of an alternative

Additional Information

No response

giampaolo commented 1 month ago

The advantage of multiple files though, is that you can override them individually. E.g. from my User/ package I may want to override another package's menus, commands displayed in the palette, etc.

ryuukk commented 1 month ago

this is irrelevant, this behavior you describe will still exist, it's just a json key to override

besides, the use case here is for personal plugins, i have 0 desire to manage billions of small json files, my personal experience shouldn't suffer