textmate

Automatically insert closing bracket in Xcode

Hi, is there a way to have Xcode append a closing bracket ")" when I type the opening one "("? I know that it does this for those {}. I really miss Textmate :( A generic way to define which chars should be automatically inserted when the opening ones are entered would be kickass. ...

How to find references when refactoring rails application with textmate?

I have been practicing TDD in C# for several years now and recently have moved to Ruby on Rails full time. I am continuing the practice of TDD with RSpec. My question is regarding the process of finding references while refactoring. In Visual Studio I was addicted to Resharper's "find all references" when renaming or replacing methods. ...

Configuring and Using HTML Tidy

I would like to use Textmate's built-in Tidy (Ctrl+Shift+H) functionality to indent my HTML 'without modifying anything' in the code. I write pretty neat HTML already, I just need Tidy to indent my code with Soft-tabs. Currently it breaks a lot of things and the formatting isn't perfect either. Can someone please write a Tidy config for...

Working with a slow connection

Hi all, I'm working with Textmate and Transmit. I work locally and sync with the server every now and then. At the moment I'm doing this by myself, it's slow and takes some time. What are the best ways to sync between servers? Also, is it possible to archive the directory and unpack it at the server? This would be so much faster... ...

TextMate alternative for Linux

Is there any TextMate alternative for Linux? Something like e-TextEditor for Windows ...

How to view a file in a new window in TextMate?

I am giving TextMate a try for some quick editing of a few script files. I would like to be able to view two files side by side while working on them instead of having to switch between tabs. I can't figure out how to display a file in a new window. I tried dragging the tab off the window (tear off), looking through the menu options, a...

Build to iPhone Simulator from TextMate

I have the Xcode bundle for TextMate and the Build and Run with XCode work fine but is there a way to pass Active Target, Active SDK or configuration into the build in order to launch the simulator? I have tried setting shell vars in the prefs pane but no luck. Thanks. ...

Find out to which highlight-group a particular keyword/symbol belongs in vim

I am coming to Vim from TextMate, and I would like to customise my vim colorscheme. It would be really helpful if I could find out to which highlight-group(s) any particular word or symbol belongs. In TextMate, I would place the caret on the word/symbol in question, then hit ctrl-shift-p and a tool tip would appear saying something like:...

Where is the TextMate Language Parser?

Does anyone know where the code TextMate uses for syntax highlighting is burried? If not, do you know how they parse their language syntaxes, or how you would parse their language syntaxes? That would be awesome to look into. Thanks! Lance ...

TextMate for Java/Maven development

Is anybody doing Java/Maven development with TextMate? Any Bundle I can use for it? I am aware of regular bundles for Maven and Java (to generate part of the code), but are there are any bundles to help list classes methods? (like Eclipse/Netbeans/etc. does). And not the current class methods, but say I have FirstDemo.java which has meth...

How to Emulate TextMate's Command-Return Feature in Vim

TextMate has a feature where pressing Command-Return at any point inserts a new line below the current line placing your cursor at the beginning of the new line. This works much (exactly?) like pressing 'o' while in command mode in Vim. Is there a way to emulate this TextMate feature while in insert mode in Vim? The same question phrase...

Textmate toggle collapse/expand CSS rule command?

Does anyone know of a command (not a macro) for Textmate / E Text Editor / Redcar / etc. that will collapse a multi-line CSS rule down to one line OR, if the rule is already on one line, expand it out to multi-line? I already know about code folding and that's not what I require - I need to be able to toggle the rules between single and ...

TextMate - completion using an external file or file contained in project?

Does anyone know how to get TextMate to search an external file (or even the files contained in a TextMate "project") with which to perform word completion? I'm coding some stuff on the C64 (using TextMate to write the code) and I have an external file containing labels for all of the hardware registers/kernal routines e.g VIC2Interupt...

Live CSS Edit with Textmate & Firefox

I have become accustom to editing CSS live in the browser using FF dev toolbar. However I do miss Textmate and syntax highlighting. I'm looking for a plug-in for Textmate to edit CSS live while viewing in Firefox. I have tried other editors such as CSS Edit, Espresso, Coda but none live up to the power and flexibility of Textmate. Idea...

Replace www.example.com w/ <a href="http://www.example.com">www.example.com</a>

I am not very good at regex, but I need to convert the following example from this <li>Creations by Carol - www.driedfloralcreations.com</li> to <li>Creations by Carol - <a href="http://www.driedfloralcreations.com" rel="external">www.driedfloralcreations.com</a></li> ...

Cleanly translate (x to y) and (y to x) using a find/replace/regex in TextMate.

I want to change this: _(with(new FuListNode )->isList())->shouldBe(true); _(with(new FuListNodes)->isList())->shouldBe(false); _(with(new FuTreeNode )->isList())->shouldBe(true); _(with(new FuTreeNodes)->isList())->shouldBe(false); } } to this (look at the booleans at the end): _(with(new FuListNode )->isList())->shouldBe(false); _(...

How can I add the "--watch" flag to this TextMate snippet?

I love TextMate as my editor for all things web, and so I'd like to use a snippet to use it with style.less files to automatically take advantage of the .less way of compiling .css files on the fly using the native $ lessc {filepath} --watch as suggested in the less documentation (link) My (thanks to someone who wrote the LESS TM Bun...

Groovy bundle for TextMate

Where can I get the Groovy bundle for TextMate? I checked the TextMate subversion repository but it's not there. The Groovy site TextMate page references TextMate's missing Groovy bundle. ...

Get filename without extension, textmade bundle editor

Thought this might work: ${TM_FILENAME/(.+?)(\.[^.]*$|$)/} But it's giving me this error: Error Parsing Snippet line 1:257: expecting regexp options, found '' Any tips? ...

TextMate - jump to latest modification

is there any way of quick jump to the last modified line? eclipse has it bound to ctrl-q and I find it very usefull while navigating between multiple files. for example, when i need to check something in other file, with ctrl-q i'm able to return immediately to the place where I was writing something before. ...