Wilson Miner | 9 Nov 20:03

tmTheme: Slate

Here's a theme I made for personal use, but I've been enjoying it so much I thought I'd share it around. I've always been fond of dark backgrounds, but not *that dark. I started this one as a compromise, inspired by colored chalk on a chalkboard.



Attachment (Slate.tmTheme): application/octet-stream, 9 KiB

Brian Lalor | 9 Nov 20:17

Re: tmTheme: Slate

On Nov 9, 2005, at 2:07 PM, Wilson Miner wrote:

> Here's a theme I made for personal use, but I've been enjoying it  
> so much I thought I'd share it around. I've always been fond of  
> dark backgrounds, but not *that dark. I started this one as a  
> compromise, inspired by colored chalk on a chalkboard.

That looks sharp, but I absolutely cannot get TM to open it!  Anyone  
else having problems?  Nothing appears in the console log, and it  
doesn't activate or appear in the list of themes...

--

-- 
    __   ____
   / /  / __/ Brian Lalor
  / _ \/__ \  blalor@...
/_.__/____/  http://bravo5.org/

Stephen F. Steiner | 9 Nov 20:25

Re: tmTheme: Slate

Doesn't work here either.

S

On Nov 9, 2005, at 2:17 PM, Brian Lalor wrote:

On Nov 9, 2005, at 2:07 PM, Wilson Miner wrote:

Here's a theme I made for personal use, but I've been enjoying it so much I thought I'd share it around. I've always been fond of dark backgrounds, but not *that dark. I started this one as a compromise, inspired by colored chalk on a chalkboard.

That looks sharp, but I absolutely cannot get TM to open it!  Anyone else having problems?  Nothing appears in the console log, and it doesn't activate or appear in the list of themes...

-- 
   __   ____
  / /  / __/ Brian Lalor
/_.__/____/  http://bravo5.org/


______________________________________________________________________
(threading gets destroyed and the universe will collapse if you don't)

Stephen F. Steiner
Integrated Development Corporation
www.integrateddevcorp.com
(603)433-1232




Wilson Miner | 9 Nov 20:34

Re: tmTheme: Slate

Strange - I just removed my local version and downloaded and installed the new one fine. Can somebody try manually dropping it in ~/Library/Application Suport/TextMate/Themes/ and let me know?

On 11/9/05, Stephen F. Steiner <ssteiner-5fEA2WC4m+SUbH/HW5EHfvegYHeGw8Jk@public.gmane.org> wrote:
Doesn't work here either.

S

On Nov 9, 2005, at 2:17 PM, Brian Lalor wrote:

On Nov 9, 2005, at 2:07 PM, Wilson Miner wrote:

Here's a theme I made for personal use, but I've been enjoying it so much I thought I'd share it around. I've always been fond of dark backgrounds, but not *that dark. I started this one as a compromise, inspired by colored chalk on a chalkboard.

That looks sharp, but I absolutely cannot get TM to open it!  Anyone else having problems?  Nothing appears in the console log, and it doesn't activate or appear in the list of themes...

-- 
   __   ____
  / /   / __/ Brian Lalor
/_.__/____/  http://bravo5.org/


______________________________________________________________________
(threading gets destroyed and the universe will collapse if you don't)

Stephen F. Steiner
Integrated Development Corporation
(603)433-1232





______________________________________________________________________
For new threads USE THIS: textmate <at> lists.macromates.com
(threading gets destroyed and the universe will collapse if you don't)
http://lists.macromates.com/mailman/listinfo/textmate



William D. Neumann | 9 Nov 20:38

Re: tmTheme: Slate

On Wed, 9 Nov 2005, Wilson Miner wrote:

> Strange - I just removed my local version and downloaded and installed the
> new one fine. Can somebody try manually dropping it in ~/Library/Application
> Suport/TextMate/Themes/ and let me know?

That's a no go here as well.

William D. Neumann

---

"There's just so many extra children, we could just feed the
children to these tigers.  We don't need them, we're not doing 
anything with them.

Tigers are noble and sleek; children are loud and messy."

         -- Neko Case

Life is unfair.  Kill yourself or get over it.
 	-- Black Box Recorder

Brian Lalor | 9 Nov 20:45

Re: tmTheme: Slate

On Nov 9, 2005, at 2:38 PM, William D. Neumann wrote:

> On Wed, 9 Nov 2005, Wilson Miner wrote:
>
>> Strange - I just removed my local version and downloaded and  
>> installed the
>> new one fine. Can somebody try manually dropping it in ~/Library/ 
>> Application
>> Suport/TextMate/Themes/ and let me know?
>
> That's a no go here as well.

Ditto.  I renamed it Slate.plist and tried restarting TM to no avail.

--

-- 
    __   ____
   / /  / __/ Brian Lalor
  / _ \/__ \  blalor@...
/_.__/____/  http://bravo5.org/

Chris Thomas | 9 Nov 20:52

Re: tmTheme: Slate

It's this line:

			<string>a Meta.tag.A<<allA>></string>

Delete the <<>> and you're good to go.

Chris

On Nov 9, 2005, at 2:45 PM, Brian Lalor wrote:

> On Nov 9, 2005, at 2:38 PM, William D. Neumann wrote:
>
>> On Wed, 9 Nov 2005, Wilson Miner wrote:
>>
>>> Strange - I just removed my local version and downloaded and  
>>> installed the
>>> new one fine. Can somebody try manually dropping it in ~/Library/ 
>>> Application
>>> Suport/TextMate/Themes/ and let me know?
>>
>> That's a no go here as well.
>
> Ditto.  I renamed it Slate.plist and tried restarting TM to no avail.
>
> -- 
>    __   ____
>   / /  / __/ Brian Lalor
>  / _ \/__ \  blalor@...
> /_.__/____/  http://bravo5.org/
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate@...
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
>

Wilson Miner | 9 Nov 21:59

Re: tmTheme: Slate

Cheers, Chris. This one should work then.

On 11/9/05, Chris Thomas <chris-m23GMADMogoAvxtiuMwx3w@public.gmane.org> wrote:
It's this line:

                        <string>a
Attachment (Slate.tmTheme): application/octet-stream, 9 KiB

Michel Rasschaert | 9 Nov 22:09

Re: tmTheme: Slate

Love it ! Thank you very much !

2005/11/9, Wilson Miner <wminer@...>:
> Cheers, Chris. This one should work then.
>
>
> On 11/9/05, Chris Thomas <chris@...> wrote:
> > It's this line:
> >
> >                         <string>a
> Meta.tag.A<<allA>></string>
> >
> > Delete the <<>> and you're good to go.
> >
> > Chris
> >
> > On Nov 9, 2005, at 2:45 PM, Brian Lalor wrote:
> >
> > > On Nov 9, 2005, at 2:38 PM, William D. Neumann wrote:
> > >
> > >> On Wed, 9 Nov 2005, Wilson Miner wrote:
> > >>
> > >>> Strange - I just removed my local version and downloaded and
> > >>> installed the
> > >>> new one fine. Can somebody try manually dropping it in ~/Library/
> > >>> Application
> > >>> Suport/TextMate/Themes/ and let me know?
> > >>
> > >> That's a no go here as well.
> > >
> > > Ditto.  I renamed it Slate.plist and tried restarting TM to no avail.
> > >
> > > --
> > >    __   ____
> > >   / /  / __/ Brian Lalor
> > >  / _ \/__ \  blalor@...
> > > /_.__/____/  http://bravo5.org/
> > >
> > >
> > >
> ______________________________________________________________________
> > > For new threads USE THIS: textmate@...
> > > (threading gets destroyed and the universe will collapse if you don't)
> > > http://lists.macromates.com/mailman/listinfo/textmate
> > >
> >
> >
> >
> ______________________________________________________________________
> > For new threads USE THIS: textmate@...
> > (threading gets destroyed and the universe will collapse if you don't)
> > http://lists.macromates.com/mailman/listinfo/textmate
> >
>
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate@...
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
>
>
>

Charilaos Skiadas | 9 Nov 22:34
Favicon

Re: tmTheme: Slate


On Nov 9, 2005, at 3:09 PM, Michel Rasschaert wrote:

> Love it ! Thank you very much !

Same here. Very nice theme! Thanks.

Haris

Andreas Wahlin | 9 Nov 22:47

Re: tmTheme: Slate

Damn, it's a tie between slate and twilight. How to solve this?

Andreas

On Nov 9, 2005, at 22:34 , Charilaos Skiadas wrote:

>
> On Nov 9, 2005, at 3:09 PM, Michel Rasschaert wrote:
>
>> Love it ! Thank you very much !
>
> Same here. Very nice theme! Thanks.
>
> Haris
>
>
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate@...
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate

Charilaos Skiadas | 9 Nov 23:30
Favicon

Re: tmTheme: Slate

On Nov 9, 2005, at 3:47 PM, Andreas Wahlin wrote:

> Damn, it's a tie between slate and twilight. How to solve this?
>
Flip a coin:
1) Open new document.
2) Type: echo "`date "+%S"`%2" | bc
3) Text->Execute Line inserting result
0 is slate, 1 is twilight.

Or you can flip a physical coin :-)
> Andreas

Haris

Allan Odgaard | 10 Nov 06:22

Re: tmTheme: Slate

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:
> 1) Open new document.
> 2) Type: echo "`date "+%S"`%2" | bc
> 3) 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)

Andreas Wahlin | 10 Nov 12:03

Re: tmTheme: Slate

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:
>> 1) Open new document.
>> 2) Type: echo "`date "+%S"`%2" | bc
>> 3) 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@...
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate

Allan Odgaard | 10 Nov 13:24

Re: tmTheme: Slate

On 10/11/2005, at 12.03, Andreas Wahlin wrote:

> Could one expand the list in some way and just increment that final  
> digit there?

Like a cycle? You would need to store the value somewhere, e.g. in a  
file. It could be made… meanwhile I had some fun creating this script:

IFS=$(echo -e "\n\r")
themes=($(find /Applications/TextMate.app/Contents/SharedSupport/ 
Themes -name "*.tmTheme"))
rand=$(dd </dev/random bs=1 count=1 2>/dev/null|hexdump -e '/1 "%u"')
total=${#themes[@]}
open "${themes[$((rand % total))]}"

It picks a random theme from what's included by default.  
Unfortunately I see that a lot of the default themes have a plist  
extension, for which it doesn't work. So currently will only pick  
random from 4 themes, but I'll have that corrected in next build.

Also be aware, if the default theme has an equivalent in ~/Library,  
TM will ask if it should overwrite (instead of switching), since it  
thinks you're opening a new version of the theme -- for users with a  
lot of custom themes, it'd probably be better to just let it randomly  
pick from what's in ~/Library.

Andreas Wahlin | 10 Nov 16:22

Re: tmTheme: Slate

Nah, i have a lot of themes that i don't like installed, rather

do randomize from given list
list equals
	slate.tmtheme
	twilight.tmtheme
	magic workbench.tmtheme
	...
end equal

god, that is horrible code, even for pseudo :)
what was described was a way of having a toggle between two files,  
but i want a toggel between n files.

ANdreas

On Nov 10, 2005, at 13:24 , Allan Odgaard wrote:

> On 10/11/2005, at 12.03, Andreas Wahlin wrote:
>
>> Could one expand the list in some way and just increment that  
>> final digit there?
>
> Like a cycle? You would need to store the value somewhere, e.g. in  
> a file. It could be made… meanwhile I had some fun creating this  
> script:
>
> IFS=$(echo -e "\n\r")
> themes=($(find /Applications/TextMate.app/Contents/SharedSupport/ 
> Themes -name "*.tmTheme"))
> rand=$(dd </dev/random bs=1 count=1 2>/dev/null|hexdump -e '/1 "%u"')
> total=${#themes[@]}
> open "${themes[$((rand % total))]}"
>
> It picks a random theme from what's included by default.  
> Unfortunately I see that a lot of the default themes have a plist  
> extension, for which it doesn't work. So currently will only pick  
> random from 4 themes, but I'll have that corrected in next build.
>
> Also be aware, if the default theme has an equivalent in ~/Library,  
> TM will ask if it should overwrite (instead of switching), since it  
> thinks you're opening a new version of the theme -- for users with  
> a lot of custom themes, it'd probably be better to just let it  
> randomly pick from what's in ~/Library.
>
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate@...
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate

Allan Odgaard | 10 Nov 17:16

Re: tmTheme: Slate

On 10/11/2005, at 16.22, Andreas Wahlin wrote:

> [...] what was described was a way of having a toggle between two  
> files, but i want a toggel between n files.

The stuff I showed used a bash array, so just do:

themes=(theme1 theme2 theme3)

You'll have to use modulo “number of themes”, which was the “total”  
variable in my last script.

So just making it:

>> themes=(theme1 theme2 theme3)
>> rand=$(dd </dev/random bs=1 count=1 2>/dev/null|hexdump -e '/1 "%u"')
>> total=${#themes[@]}
>> open "${themes[$((rand % total))]}"

Should work. Though remeber to quote theme paths properly, though ~  
won't expand in double quotes, so use $HOME instead.

Wilson Miner | 10 Nov 18:19

Re: tmTheme: Slate

Glad you like it. I stole some of the scope definitions from Twilight, so credit due etc.

On 11/10/05, Allan Odgaard < throw-away-1-jlSwmc+ugeV0ubjbjo6WXg@public.gmane.org> wrote:
On 10/11/2005, at 16.22, Andreas Wahlin wrote:

> [...] what was described was a way of having a toggle between two
> files, but i want a toggel between n files.

The stuff I showed used a bash array, so just do:

themes=(theme1 theme2 theme3)

You'll have to use modulo "number of themes", which was the "total"
variable in my last script.

So just making it:

>> themes=(theme1 theme2 theme3)
>> rand=$(dd </dev/random bs=1 count=1 2>/dev/null|hexdump -e '/1 "%u"')
>> total=${#themes[ <at> ]}
>> open "${themes[$((rand % total))]}"

Should work. Though remeber to quote theme paths properly, though ~
won't expand in double quotes, so use $HOME instead.


______________________________________________________________________
For new threads USE THIS: textmate-qhrM8SXbD5LrQoZeqNtYVVaTQe2KTcn/@public.gmane.org
(threading gets destroyed and the universe will collapse if you don't)
http://lists.macromates.com/mailman/listinfo/textmate


Enrico Franchi | 10 Nov 17:04

Re: tmTheme: Slate

Il giorno Mercoledì, 9 novembre 2005, Wilson Miner ha scritto: 

> I started this one as a compromise, inspired by colored
> chalk on a chalkboard.

It kind of reminds me teh old default theme Emacs had on Red Hat...

--

-- 
The fact that it works is immaterial.
        -- L. Ogborn


Gmane