This must be the only editor I've ever used that can switch themes at random on startup ... could this be auto executed in some way? Don't really know if I want, but it's a fun thing :) Could one expand the list in some way and just increment that final digit there?
Andreas
On Nov 10, 2005, at 6:22 , Allan Odgaard wrote:
On 09/11/2005, at 23.30, Charilaos Skiadas wrote:
Damn, it's a tie between slate and twilight. How to solve this?
Flip a coin:
- Open new document.
- Type: echo "`date "+%S"`%2" | bc
- Text->Execute Line inserting result
0 is slate, 1 is twilight.
Here's a refinement, select these two lines and ctrl-R to make TM switch to the theme as well :)
themes=($HOME/Library/Application\ Support/TextMate/Themes/ Slate.tmTheme /Applications/TextMate.app/Contents/SharedSupport/ Themes/Twilight.tmTheme) open "${themes[$(bc <<<$(date "+%S %%2"))]}"
(if you have Twilight in /Library or ~/Library, you'll need to change the path)
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate