Regex to replace values that include part of match in replacement in sublime?

The replacement expression is: \$\1\u\2 \1, \2 are the captures (or $1, $2) \u up-cases (see the Replacement String Syntax section). See the Regular Expressions chapter (in the TextMate docs) for more information. There’s already a package that does this, and more: Brief blog about CaseConversion CaseConversion package

Compile CoffeeScript on Save?

Coffeescript has a ‘watch’ feature. You could set up, as a semi-permanent process: coffee –wc -o media/js/ src/coffee/*.coffee And for every file with an extension “.coffee”, the corresponding compiled “.js” file will be put into the target directory every time you save. That said, I use a makefile and a fabfile, because my HTML is … Read more

Editing remote files over SSH, using TextMate?

OK – here is the one that works on Mountain Lion. Go to http://osxfuse.github.com/ Install FUSE for OS X Install SSHFS for OS X Then the following commands on your terminal: mkdir /Volumes/SSHFS /usr/local/bin/sshfs username@host:/path/to/dir /Volumes/SSHFS Done. I would also recommend using the ReMate plugin as pointed out by another user to prevent TextMate from … Read more

Where to find a list of scopes for Sublime2 (or textMate?)

Copy/pasting (but converting HTML to Markdown) from the current version of the “Naming Conventions” section of the TextMate Language Grammar Guide: comment — for comments. line — line comments, we specialize further so that the type of comment start character(s) can be extracted from the scope. double-slash — // comment double-dash — — comment number-sign … Read more