textmate

Explain this Regular Expression please

Regular Expressions are a complete void for me. I'm dealing with one right now in TextMate that does what I want it to do...but I don't know WHY it does what I want it to do. /[[:alpha:]]+|( )/(?1::$0)/g This is used in a TextMate snippet and what it does is takes a Label and outputs it as an id name. So if I type "First Name" in the...

Is it possible to launch an external image editor from Textmate?

Is it possible to launch an external image editor from the TextMate project drawer? I suppose the same concept would apply to launching any external editor from TextMate. Right now, if I right-click on the image file, I only have an option to open in Preview or Finder. Thanks! ...

Textmate - select and modify matching HTML Tags

Textmate - Is there a shortcut for selecting matching HTML tags or another way to quickly remove/modify an existing begin and end tag at once? Kind of like SHIFT + CTRL + W ... but for tags that already exist in the code. ...

Gettings errors with Textmate using Git bundle.

Trying to use Textmate with the Git bundle. Running into errors when trying any option. /Users/colby/Library/Application Support/TextMate/Bundles/Git.tmbundle/Support/tmvc/../lib/git.rb:131:in `paths': No selected files. (RuntimeError) from /Users/colby/Library/Application Support/TextMate/Bundles/Git.tmbundle/Support/tmvc/../lib/git.rb...

What are the most useful TextMate bundles or plugins for Rails development.

I'm compiling a list of the most useful bundles and plugins for TextMate which are helpful for using while developing with Rails. I have two which I use religiously: Project Plus Zen Coding ...

Creating an empty txt file on Mac OS without opening an application first

Is there a way to simply create a new document e.g. on the Desktop and open it with e.g. textmate with a simple shortcut or script. I know that the MS Windows approach where you can just create a new empty txt file directly is not working for Mac. I am looking for a method achieving something similar. Any ideas? ...

TextMate - scroll tabs

hi. TextMate has one irritating 'feature' that shows up when editing lot of files (within a given project). in case there is no place at tab bar for new tabs, a ">>" is shown. it simply shows a popup with rest of files. that's ok, but why when one selects a file its tab is not visible? isn't it kind of iconsistency? what is more irritati...

Creating a command in a bundle to do a find in a replace in a given document

I'm looking to create a command in a textmate bundle that when run will: Search the document for a given string Replace that string with another given string The strings will always be the same Search for <? replace with <?php I know I can use textmate's find and replace functionality - I'm just trying to automate a litt...

Is there any way to force TextMate to cache files?

I'm working with a Rails project over an AFP mount in TextMate. Every time TextMate becomes the active window, it spins for around 30s-1m, which is VERY frustrating. I've sampled TextMate when this is happening, and found multiple calls to +[NSFileAttributes _attributesAtPath:partialReturn:filterResourceFork:error:] to be the issue. Is t...

Escaping a Ruby String for TextMate's $DIALOG command

Calling regex gurus. I'm having some trouble right now with escaping a string in Ruby so that I can pass it into a command line utility using exec, %x{} or similar. The command line command is the TextMate dialog feature, which basically works like this (Run this as a shell script in TextMate.): $DIALOG -mp "items=('string1','string2', ...

What is your favorite textmate plugin or bundle?

Textmate is a great editor with lots of plugins and bundles, hoping to find a few more that will make Textmate even more useful. I personally can't live without Ack in Project (http://github.com/protocool/ack-tmbundle), the built in search for textmate is awful, ack in project does searches 100x faster. What's your favorite Textmate pl...

Formatting ERB Templates automatically in textmate

When writing ERB templates in Ruby on Rails using Textmate formatting by hand pretty much sucks. Do anyone know of a textmate bundle that handles formatting of ERB templates/views? My googling has found nothing. Thanks! ...

Mac: Setting up SVN for personal development

Hi, I've seen that i already have both svn and svnserve (and a .subversion dir in my home). svnserve should be svn server, as far as i know, but how can i run it? I need something very basic, not linked to apache or any server, just to version files on my own computer for personal development (svn is integrated with TextMate that i use)....

Is there anyway to enable MultiSelect in the StyledTextCtrl

I've noticed that the StyledTextControl (Scintilla basically) in wxWidgets has a great feature that allows multi-selections of text, just like TextMate. However wxRuby doesn't seem to have the function calls to support that feature. I'm wonder if there is a way to enable it or if there might be a way I could rewrite that wrapper to inclu...

TextMate and Django Integration - Supporting {% %} markup

I have installed a TextMate bundle that I believe enables the ability for automatic closing of the "{{" markup (so that it will automatically close the markup with "}}"), but this does not seem to be possible with the other markup that uses "{%" and "%}". So, I was wondering if anyone out there knows how to get TextMate to add the autom...

textmate mercurial bundle - push not working

Hi, not really a programming question, but I cant find anywhere else to ask it and there is bound to be someone in here using this as well. I got the mercurial.tmbundle installed and everything seems to be working fine with the exception of "Push to default repo" I have a default repo setup (bitbucket) and just using the command hg pus...

Working in both emacs and Textmate

I have an Ubuntu Linux development machine and a Macbook that I work on. On my laptop I use Textmate for PHP development on the go. The problem is that when I return to my Ubuntu dev machine and open my files in emacs, the formatting is off. I think it looks like one tab in Textmate is for some reason several tabs in emacs. So my code ta...

2 basic Textmate shortcuts 'don't save' and 'replace all'

Ok, maybe they're system shortcuts. I've googled (just a bit) and couldn't find an answer. Maybe there isn't any :) Still.. I love keyboard and I use quite a few in TextMate but just realise I still use the mouse for 2 of the most common actions: How do I press search and replace after the S/R dialog box is up? - if you press enter i...

XCode's theme for TextMate

Hi! I'd like the default theme of XCode but for TextMate. Is there anyone who knows where I could find this? Thanks! ...

How to tell to TextMate ignore my Katz's Bundler folder in "Go to File"?

I use Katz's Bundler to manage gem dependencies. Who know, how to tell to TextMate ignore my "vendor/bundler_gems" folder in "Go to File"? Image demonstrate my little problem. You can see, what I want to find my application.sass, instead "Go to File" find lots of trash from bundler folder. ...