reywood / sublime-project-specific-syntax

Allows syntax settings to be specified per project in Sublime Text
GNU Lesser General Public License v3.0
87 stars 8 forks source link

Feature request for 'Copy syntax setting to clipboard' #16

Closed jamiewilson closed 5 years ago

jamiewilson commented 6 years ago

Hey, first off, thanks for this project.

I was wondering if there is any reason why the copy to clipboard feature doesn't copy the whole settings object that you need for it to work. For example, rather than getting just:

"\\.html$": ["Handlebars", "grammars", "Handlebars"]

wouldn't it be awesome if you got:

"syntax_override": {
        "\\.html$": ["Handlebars", "grammars", "Handlebars"]
}

Just a thought. Thanks!

reywood commented 5 years ago

Good idea! I've gone ahead and done you one better. I just released a new version that will include the "syntax_override" bit if there isn't already one in your project settings file. If there are already syntax override settings, then it'll just give you the single line, as before.

jamiewilson commented 5 years ago

Very cool. thanks!