* Convert Hex (i.e. #RRGGBB) color representation to a RGBA tuple (i.e. rgba(0-255, 0-255, 0-255, 0-1))
* Convert RGB(A) tuple (i.e. rgba(0-255, 0-255, 0-255, 0-1) OR rgb(0-255, 0-255, 0-255)) to Hex (i.e. #RRGGBB)
* Convert individual colour values from 0-255 (unsigned byte) values to/from float (0.0-1.0) values
* Accessible from menus (shown in screenshot), using hotkeys (shown in screenshot too: Ctrl-Shift-R for "Convert to rgba", and Ctrl-Shift-H for "Convert to hex"), and from the command palette (Ctrl-Shift-P - I recommend searching for "hex" or "ub")
EDIT (20180215): I've just tested it in Sublime Text 2, and it also works there. So, it's safe to say that it works on both now :)
How this plugin came about:
Fed up by having to spend heaps of time copying, converting, and transcribing colour values between various representations (namely, various combinations of Hex (#RRGGBB), RGBA-Float (0.0, 0.25, 0.5, 1.0), and RGBA Web / Unsigned-Byte (255, 127, 0, 0.1)), I started looking for plugins to automate this process a bit.
Last year, I'd already developed a bunch of text-munging utilities to automate some repetitive text editing tasks a bit (which deserve their own post sometime), so I wasn't a stranger to developing plugins for Sublime Text already (it helps that they're all Python-based :) However, at the time, I didn't really feel like developing a bunch of new tools from scratch (though the other plugin's readme hints that I was planning on working on these tools at some point), so I went and found an addon that seemed to do what I needed.
Alas, life has a way some times - the irony is not lost on me that in the end, I ended up essentially coding most of the tools I'd planned on coding "at a later date", as the plugin in question was buggered in various ways (but looked close-enough to salvageable that I started trying to fix it)
Usage and Installation
For detailed usage and installation instructions, see the Readme.md in the repo.
Basically though, installation consists of checking out the repo (or downloading a copy) and dumping in your "%HOME%/Sublime Text/Packages/" folder. It should be able to be used from all the usual places (as mentioned) - just select the existing colour codes to replace, then active the appropriate commands.
Future Development Plans
At this stage, I don't really intend to do any further major earthworks here in the short term. The things I've added should solve most of the pain points I encounter most of the time. There are however a few additional nice features I might consider for a future v3.0 release, such as:
* Convert to/from various standard color names (e.g. SVG colors or X-color names)
* HSV/HSL and Lab support
* Bundle the colour preview popup panel from one of the plugins out there
Other things that would be nice to do at some point are:
* Setting up some unit tests (using the Sublime Text UnitTesting plugin). I don't see many plugins actually doing this atm (at least most of the major ones I use don't), but especially with all the regex and weird syntax out there, I think it'd be worth testing this out to ward against those kinds of bugs. Plus, it looks like fun to play around with writing some tests for interactive stuff like this.
* Get this available via the official Package Control channels. Unfortunately, it's a whole bunch of process-tools that I don't have time investigate and navigate right now, so it might have to wait for a while.
I actually use ST2 most of the time (for Blender dev now, and I wrote most of my thesis with it too - hence the earlier package to fix various Latex things).