Andrew Colclough

Web Design & Dev., Liberty, Economics, Football

Sublime: ...A Color Picker like Textmate?

Yeah, another feature that I (a CSS designer/dev) cannot live without. If you have no idea what I am talking about, here's the skinny:

Usually, as I am working on rapid development - I need to quickly pick colors - and test how they mesh with my design. Well, I don't know about you - but I don't do instant Hex or RGBa color conversions in my head too quickly. So, one of my favorite features of TextMate is the command "Insert Color" - Invoked by hitting Command+Shift+C. This launches the Apple color wheel picker that I use to adjust ranges of color -> which then spits out a Hex or RGBa value into my CSS code. 

Colorpicker

Sublime Text 2 doesn't have anything like this (as of yet...), and for me - that really could slow down my workflow. However - I found a decent solution until (or if) Sublime gets something like this. 

First: Nab the application version of the Apple Color Picker

This will allow you to keep open the color picker while you are working.

Second: Download and install either or both:

Colors

Simply drop these plugin files into Library > ColorPickers (create this dir/ if it doesn't exist). Then restart the Color Picker Application - and you have a way to easily grap Hex or RGBa values and dump them into Sublime. Win!

Note - Obviously, this is for OSX users. If you are on Windows, you will have to hunt around for windows variations of these little apps. 

Also - the TextMate command is just a ruby script...so if anyone has the know-how to convert it to something Sublime could understand...

Insertcolor
And if you had the same question I did about the above screenshot...

Burlywood

Filed under  //   Color Picker   Sublime Text 2   Textmate   burlywood   coding   css   hex   tips  

Sublime Text Editor - Shell Alias for Opening dir/ or File

Edit_side_by_side_in_widescreen

So on Noonat's advice I have been checking out Sublime Text Editor as an alternate for Textmate

So far, I am very impressed - though there was one thing I absolutely missed from Textmate: The abulity to simply open any directory or file from Terminal via a shell alias:

mate dir/

Well, with Noonat's help, here is a simpe way to set one up for Sublime:

Add the following to your .bashrc file:

alias slime='open -a "/Applications/Sublime Text 2.app"'

You can name the alias (I chose "slime") whatever you want - but make sure that you point to the application and you need to have the extension .app on the end.

It is enjoyable to be able to open a repo with Sublime via:

slime /projectName

;)

Filed under  //   .bashrc   Sublime   Textmate   alias   code   programming   shell   text editor   tips