textmate

Favourite Textmate Commands, Snippets, Bundles, etc

This isn't specifically a general programming question but a lot of textmate users I know end up building a textmate command to do something they often do but as it's on it's own never really release it. Mines Below: Objective-C Build and Run For when I'm just quickly writing a small Objective-C command line program, place this in a ne...

Fastest way to "jump back" to a file in TextMate?

Often, when I am reading code or debugging, I want the ability to quickly jump around files. I especially want to "go back" to where I was. I know about "Command+T", "Command+Shift+T", and, bookmarks. But, I cannot figure out a way to jump around files quickly. UPDATE: I do not think I my question was clear enough judging by two an...

Setting Shortcut Keys in Textmate

I am switching to textmate and there are a few things I want to change. I have tried Googling for the answer, but haven't found a simple explanation for how to rebind shortcuts globally. First, tab switching doesn't work with Cmd+Shift+{ and Cmd+Shift+} This works in nearly every other application (FF, Terminal, etc.) How do bind thos...

How do I view git diff with textmate

I have my editor setup to be textmate but when I do a git diff it uses vi to show me the diff output, is there any way to set it to show the diff in textmate? ...

Textmate: How do I enter a repeated sequence of characters?

I often need to enter text (consisting of repeated characters) like this: ------------------------------------ TODO ------------------------------------ In emacs, I can do a C-u 60 - that's a Ctrl+U followed by a "60" followed by a "-", which makes entering a repeated sequence of characters easy. Is there any way to do something...

How can I change language contexts in Textmate bundles?

I'd like to get my Textmate bundles to use the correct contexts based on what I'm editing. For example I use YUI a lot so I'd like the HTML bundle to use the YUI JS bundle instead of the standard JS one, etc. Can anyone suggest where and what I should be editing to make that happen. Bonus points for tips on bundle editing. ...

TextMate source.java comment block folding

How do I modify the java language definition bundle foldingStartMarker and foldingStopMarker entries to allow for folding of these types of comment blocks? This is the comment style: /** * This is a comment... * Yet another comment... */ I've tried this: foldingStartMarker = '(\{\s*(//.*)?$|^\s*// \{\{\{|^\s*\/\*\*)'; foldingSt...

How to add iPhone SDK classes to autocomplete in TextMate?

How, if possible, can I have iPhone SDK's classes (UI*) to autocomplete inside TextMate? ...

Programming TextMate in Ruby. Problem with TextMate.go_to

I'm modding a TextMate bundle even though I'm a complete beginner at Ruby. The problem I'm trying to solve is the issue of moving the caret to a certain positition after the command has made its output. Basically what happens is this: I hit a key combo which triggers a command to filter through the document and inserts text at the relev...

Highlighting trailing whitespace in Textmate for Python?

I would like to do something like this Textmate tip, so that trailing whitespace are always highlighted in some way when I code something in Python - it makes it easier to correct it immediately and other editors such as Emacs can do it. Unfortunately the discussion after that post seems to suggest it's difficult to do. For me the inval...

Why Emacs/Vim/Textmate? Isn't Xcode good enough?

Hi I mostly do C++, Objective-C programming. And I found Xcode plus an auto completion/macro plugin (Completion Dictionary) quite adequate. However, all people seem to praise over their pure text editors. I tried Textmate for a bit; liked its simplicity but dislike its files/framework handling. Am I missing something here? Or, do Vim ...

How can I format date -u so that the results include timezone offset in a Mac OSX terminal session?

In a terminal session I can use date -u to get Mon Mar 16 03:34:39 2009 UTC However, I'd like to include the offset. I'm modifying a TextMate tab trigger so that I can insert the full date including the local offset, in standard UTC format. I believe that would be in the following form: Mon Mar 16 03:34:39 2009 UTC -0500 So, as you c...

How can I search and then replace a code snippet that includes some variables in TextMate?

I have a project that includes 49 folders, each one has a file called index.php All index.php files are almost the same except for one part that changes depending on the folder it is in. <?php include_once("/home/bgarch/public_html/galleryheader.html"); ?> <?php include_once("/home/bgarch/public_html/culture/loadscripts.html"); ?> </h...

Files with the same name in a TextMate project

One of the few things that bothers me about TextMate is that it can be difficult to differentiate between files that share the same name in a project, e.g: In this case, the file on the right is located in the project relative path model/realtimemodel.py, while the other file contains unit tests for that code. Sure, you can command-cl...

How do you default to Soft Tabs while programming in Textmate?

My "Soft Tabs" setting in TextMate is not sticky. After I restart TextMate, I often have to set the option again for the same file. How can I make this setting the sticky default across all files? ...

Is there a better Python bundle for textmate than the one in the bundle repository?

At this time Textmate's official Python bundle is really bare bones, especially in comparison to the Ruby bundle. Does anyone know of a Python bundle that is more complete? EDIT: I am fully aware that there are editors and environments that are better suited to Python development, but I am really just interested to see if there is a th...

TextMate: Preview in Firefox without having to save document first?

Using TextMate: Is it possible to assign a shortcut to preview/refresh the currently edited HTML document in, say, Firefox, without having to first hit Save? I'm looking for the same functionality as TextMate's built-in Web Preview window, but I'd prefer an external browser instead of TextMate's. (Mainly in order to use a JavaScript co...

class & function names highlighting in Vim

I just recently set up my Vim environment from Textmate, after becoming addicted to its modal input. However, syntax highlighting seems to be not so beautiful in Vim. I code in C++ and since the function call and class names can't be highlighted, the code is more difficult to read. I played with color scheme for a bit, but couldn't fin...

What ever happened to Textmate 2?

What ever happened to Textmate 2? ...

Ruby IDEs: any worth looking at?

I currently use TextMate for all my Rails development, and I like it very much, but I wonder if I'm missing anything by not using an IDE. Has anyone switched from using TextMate or another powerful text editor to a Ruby IDE? Am I missing anything? ...