Is there a way to have a file type automatically use a different theme that is not the default one?
If I create a language bundle and include a theme, is there a setting to make the language files default to the theme included with the bundle?
Thanks,
John DeSoi, Ph.D.
On 9 Jun 2020, at 21:52, John DeSoi wrote:
Is there a way to have a file type automatically use a different theme that is not the default one?
Yes. I have this in `~/.tm_properties`:
[ text.plain,text.html,text.mail ] theme = "3A9E8876-6DBD-4696-871F-95D340F8BA27"
As you can see, you need to use the theme’s UUID.
If I create a language bundle and include a theme, is there a setting to make the language files default to the theme included with the bundle?
I can’t answer that one.
`theme` should be on top of other directives as far as i know...
fontSize = 18 theme = A4299D9B-1DE5-4BC4-87F6-A757E71B1597 : : : [ attr.untitled ] //fileType = "text.html.markdown" fileType = "source.shell"
[ source.css ] tabSize = 4 : :
Uğur Özyılmazel
https://ugur.ozyilmazel.com https://github.com/vigo
On 10 Jun 2020 14:54 +0300, Rob McBroom mailinglist0@skurfer.com, wrote:
On 9 Jun 2020, at 21:52, John DeSoi wrote:
Is there a way to have a file type automatically use a different theme that is not the default one?
Yes. I have this in ~/.tm_properties: [ text.plain,text.html,text.mail ] theme = "3A9E8876-6DBD-4696-871F-95D340F8BA27" As you can see, you need to use the theme’s UUID.
If I create a language bundle and include a theme, is there a setting to make the language files default to the theme included with the bundle?
I can’t answer that one.
Rob McBroom
TextMate mailing list TextMate@lists.macromates.com https://lists.macromates.com/listinfo/textmate
hmm i have no idea. also, do you thing that file-type based theme feature exists on TextMate? Never heard of it.
Uğur Özyılmazel
https://ugur.ozyilmazel.com https://github.com/vigo
On 11 Jun 2020 13:49 +0300, Rob McBroom mailinglist0@skurfer.com, wrote:
On 10 Jun 2020, at 8:22, Uğur Özyılmazel wrote:
`theme` should be on top of other directives as far as i know...
To set it globally, yes, but the question was about setting a theme for a specific file type.
-- Rob McBroom
TextMate mailing list TextMate@lists.macromates.com https://lists.macromates.com/listinfo/textmate
On 11 Jun 2020, at 8:12, Uğur Özyılmazel wrote:
hmm i have no idea. also, do you thing that file-type based theme feature exists on TextMate? Never heard of it.
Yes, it exists. It was mentioned when 2.0 first became available, but it didn’t actually work until more recently.
So John’s question was basically “Now that its here, how do I use it?” My first reply should answer that.
On Jun 10, 2020, at 6:54 AM, Rob McBroom mailinglist0@skurfer.com wrote:
On 9 Jun 2020, at 21:52, John DeSoi wrote:
Is there a way to have a file type automatically use a different theme that is not the default one?
Yes. I have this in ~/.tm_properties:
[ text.plain,text.html,text.mail ] theme = "3A9E8876-6DBD-4696-871F-95D340F8BA27"
As you can see, you need to use the theme’s UUID.
Works great, thank you.
If I create a language bundle and include a theme, is there a setting to make the language files default to the theme included with the bundle?
I can’t answer that one.
Not a big deal, but would be nice to have. I'm working on a bundle for 4D which comes with an IDE and default syntax coloring. It would be nice to match the default theme to those settings for 4D's source files.
John DeSoi, Ph.D.
On 17 Jun 2020, at 9:35, John DeSoi wrote:
If I create a language bundle and include a theme, is there a setting to make the language files default to the theme included with the bundle?
Not a big deal, but would be nice to have. I'm working on a bundle for 4D which comes with an IDE and default syntax coloring. It would be nice to match the default theme to those settings for 4D's source files.
Not currently possible: We do have other types of settings in the bundles, and my experience is that the more we “spread things out” (i.e. place some settings in some bundles), the more headaches we create for users who wants to change the “defaults”.
So better to tell users to add two lines to `~/.tm_properties` than change their default theme, if they install the 4D bundle (yes, it would only be for 4D files, but it would “break” the _View → Theme_ submenu for those files).