textmate

TextMate's Jump to Function in VIM?

Hi guys, Recently I've been trying my hand at using vim instead of TextMate and one of the features that I've missed most in VIM is TextMate's jump to method function (CMD + Shift + T for those who don't know). From looking around I havn't seen any particular way to emulate this functionality and was wondering if anyone here has had exp...

Python + SVN + Windows/Mac = Invalid syntax?

I'm pretty sure the following error is related to the fact that I'm sharing code via SVN with a colleague that is using a Windows system. Myself, I use Python on Mac, editing with TextMate. #!/usr/bin/python import os from google.appengine.api import users from google.appengine.ext import webapp ... When running that code, I get a...

SASS syntax highlighting does not work when bundle is installed along with HAML's in Textmate?

I've encountered this issue on two different machines and can't figure out what the cause is. SASS syntax highlighting works fine in TextMate when I install a SASS bundle like this. However, when I also install a HAML bundle, like this one, SASS code reverts to plain text color. I've tried a bunch of different combinations of bundles o...

can anyone explain this javascript textmate snippet to me please

hi all, the following code is a textmate javascript snippet, can anyone explain it please? cuz i want to use this feature in my own snippets. greate thanks. document.getElement${1/(T)|.*/(?1:s)/}By${1:T}${1/(T)|(I)|.*/(?1:agName)(?2:d)/}("$2") ...

TextMate Snippet to Mirror Only Matched Characters

I have been trying unsuccessfully to mirror text that only matches "a-z0-9" using the following code: ${1/[a-z]/$0/}${1} After the snippet has been tab triggered I would expect to type "$test" and see "test" mirrored. Any clues? Many thanks! ...

Java Code Formatting in Textmate

Is there a way/bundle/shortcut to format the Java Source in TextMate? (As we do with Shift+Command+F in Eclipse). ...

Ways to speed up TextMate on large rails projects?

Is there any way to improve the performance of TextMate when a large project is open? Making it the active app is taking about 10 second each and every time. ...

Shell script to grab selected text and alter it?

How can I make a shell script that will know where the caret is and grab selected text, so I can wrap the text in something? For example, this is a script from a Textmate bundle: <${1:p}>$TM_SELECTED_TEXT</${1/\s.*//}> It grabs the text and wraps it in open/close HTML tags. And it is variable so the second tag is mirrored as you type...

Emacs session / projects / window management

Hello, I am working with Ruby on Rails projects most of the time so I need a way to save projects and the state of the buffers/windows I am working on, mostly because I often find myself switching to a different project for a few minutes and then going back to the project I was working on. Desktop.el seems to be very close except for th...

git commit -a on Mac hangs when TextMate is quitted

I have core.editor set to "mate -w". On Leopard, git commit -a starts TextMate. After entering a commit log message, saving (Cmd-S), and quitting (Cmd-Q) TextMate, git would successfully complete the commit operation using the entered commit log message. Since upgrading to Snow Leopard (Mac OS X 10.6.2), the behaviour has changed. After...

Code folding on consecutive collect/select/reject/each

I play around with arrays and hashes quite a lot in ruby and end up with some code that looks like this: sum = two_dimensional_array.select{|i| i.collect{|j| j.to_i }.sum > 5 }.collect{|i| i.collect{|j| j ** 2 }.average }.sum (Let's all pretend that the above code sample makes sense now...) The problem is that even th...

Using Python 3.1 with TextMate

TextMate seems to use the built-in Python version I assume (sys.path doesn't work). How do you configure it to use 3.1 instead? I've already installed the 3.1 package and I can use IDLE for interactive sessions, but I need to use TextMate now. Thanks ...

textmate railscast theme and font?

where can I get the textmate rails theme and font used on Railscast? ...

How to enable ruby methods visualizing in vim

Hi, a have googled the question, but found nothing - maybe I do not know how to define the search keywords properly in this case. I like to use folding in vim when I'm developing Ruby on Rails applications. And my foldcolumn is set to 4. But its visualizing of the start and the end of the ruby method is not so simple and obvious ("-" - ...

Textmate, open file at Caret

I bet this is really obvious but I can't find how to open the linked file that the Caret is currently on in Textmate. For example in the likes of Dreamweaver you can click in the index.html portion of <a href"index.html" hit cmd-D and it opens this file in a new tab. Is this possible? Would also be good to do this with <img src="image...

textmate + tm_dialog2 howto?

hello, i've already added an own bundle to my textmate installation, next step would be to provide some nice GUI to the commands. i've already watched the screencasts of "interface builder" + "tm_dialog" and i already made some nice gui wich works just fine with "tm_dialog". however. i've read, that one should use "$DIALOG" in textmate...

Textmate and vim modes

Hello. It is possible to emulate vim modes, macros and bindings in textmate? ...

TextMate: Adding to a bundle

There are a couple of bundles that I would like to add some functionality to. If I update the bundles via SVN will my additions/updates be replaced? ...

Project Update via Textmate (like Espresso)

I am thoroughly in love with Textmate. I program everything in it, including ASP.Net for my daily job. However, I have a license for Espresso and I was looking at it recently and discovered that there is a "Publish" section that I knew about before, but I didn't know that it could compare my FTP directory with my local directory and pu...

Reopening TextMate projects sourced on NFS mount

Every time I eject my NFS mount, my TextMate project(s) sourced on said mount go red. But if I reconnect, there doesn't seem to be a way to re-source them. Any ideas? ...