TextMate pinwheels on Focus with ExpanDrive
I recently bought a Macbook (4,1 model) 13.3″ 2.1GHz and I put 4GB’s of DDR2 RAM in it. I like it. It’s fast, it’s minimal, it’s fast. I bought the Macbook for $650 brand new with the intentions of putting 4GB’s of RAM in it and then upgrading to an OCZ Vertex 120GB SSD but my Macbook just happens to be one of those lucky ones with a 1.5Gb/s SATA I bus so I’m screwed.
</tangent>
Here’s my (and probably your) problem:
- I installed TextMate
- I installed ExpanDrive (Application that lets you mount SFTP/FTP drives as if they were local)
On focus (aka, when you go back to the window from something else) TextMate re-indexes the entire project path which takes 2-5 seconds for me because my first project was small. It just sits there and pinwheels.
Mathematical analysis (lolz)
- 2-5 seconds of pinwheelage every focus.
- Average 3.5 seconds per focus.
- Est. 150 focuses every hour or so.
- That’s like 10 minutes for every hour where the P.O.S. is just pinwheeling.
It completely and totally dies (pinwheels) if you have more than 100 files or so it seems so I started to look for a fix and I found
The Fix for TexMate pinwheeling with ExpanDrive
ReMate.
http://ciaranwal.sh/remate/
Excerpt from above link:
ReMate is a TextMate plugin which can be used to disable the automatic project tree refresh when the application regains focus.
The plugin adds the following:
- a toggleable item to the window menu labeled “Disable Refresh on Regaining Focus” – when this is checked, projects will not be updated when TextMate regains focus.
an option on the project menu (reached by right-clicking on an item in the project tree or the gear at the bottom of the project drawer) to “Refresh All Projects”
YOU’RE WELCOME.
Bryan
Related reading
2 Responses to “TextMate pinwheels on Focus with ExpanDrive”
Leave a Reply

padrelife on September 4th, 2009
How about macfuse for the sshfs mount?
Why textmate vs coda? just curious.
http://code.google.com/p/macfuse/
bryan on September 8th, 2009
I’m using ExpanDrive with SFTP/FTP and I just don’t like Coda anywhere near as much as I like textmate.