Is there a way to automatically have TextMate change to a specified theme based on the bundle that is selected?
An example is, when I select to make a Screenwriting bundle file, I'd like it to automatically change to my screenwriting default theme instead of whatever is currently there.
I've been extremely frustrated trying to figure this out.
Thanks in advance!
Allan,
could it be done via an applescript? (like: run a script that either calls textmate directly or just opens the preferred theme file, which then gets loaded, doesn't it?)
Dan
On 23/4/2006, at 12:33, Daniel Käsmayr wrote:
could it be done via an applescript? (like: run a script that either calls textmate directly or just opens the preferred theme file, which then gets loaded, doesn't it?)
Yes, if you run: open «theme file» (and that file is an installed theme), TM will switch to that theme.
I think somewhere in the list archives is a command which switches to a random theme :)
On Mon, 24 Apr 2006 23:33:25 +0200, thomas Aylott thomas.42@gmail.com wrote:
Is there a way to automatically have TextMate change to a specified theme based on the bundle that is selected? [...]
No, but it is a noted request.
I'd also like to have a separate theme per window. That might be necessary in order to implement the other thing.
I think my use case could be solved with these additions, but another way to solve it would be font selection based on scope. Normally all scopes would use the default font from the surounding scope but it should be possible to overwrite the font. It would be very css like. I don't know whether this is possible. Implement what's easier ;)
Regards, Florian Schulze ps: thanks for adding my javascript patch so fast