Questions tagged [textmate]

TextMate is a text editor for Mac OS X.

TextMate is a customizable programmer's text editor for Mac OS X. It attempts to bridge the power of UNIX and Emacs with the ease of use and elegance of OS X.

Some of its notable features include:

  • declarative customizations
  • a tabbed documents view
  • recordable macros
  • code folding and snippets
  • shell integration
  • an extensive bundle system
  • and more.

Textmate Flavored Regex

Textmate uses the regex library Oniguruma.

Some recipes

Find everything from the top to the end of the head portion of an html file.

<?m:<!(.*)</head>) 

Find entire starting anchor tag

<a [\s\S]*?>

or start to close

<a [\s\S]*?/a>

More information and a 30-day trial is available on the developer's website.

Also a new and improved version of this editor Textmate 2 which is now in alpha. More information about that here: http://wiki.macromates.com/FAQ/TextMate2

1102 questions
20
votes
4 answers

Is it possible to implement Python code-completion in TextMate?

PySmell seems like a good starting point. I think it should be possible, PySmell's idehelper.py does a majority of the complex stuff, it should just be a case of giving it the current line, offering up the completions (the bit I am not sure about)…
dbr
  • 153,498
  • 65
  • 266
  • 333
20
votes
3 answers

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…
nelstrom
  • 17,106
  • 12
  • 51
  • 65
18
votes
2 answers

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…
guns
  • 9,800
  • 3
  • 36
  • 36
18
votes
4 answers

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?
John Duff
  • 35,662
  • 4
  • 31
  • 44
18
votes
2 answers

Bundler Gemfile syntax highlight in Text Mate

Hello I'm learning Rails3 so I start to use gem Bundler (http://github.com/carlhuda/bundler) Does anybody know, how to setup TextMate to highlight Gemfile syntax? Thanks!
A B
  • 1,822
  • 2
  • 20
  • 22
17
votes
1 answer

Is there a way to comment out a large block of code in TextMate?

I don't see anything in the Ruby bundle that will help me add comments to a large block of code. The links I have found online to such a shortcut do not appear to be valid any more.
AKWF
  • 11,646
  • 12
  • 84
  • 180
17
votes
3 answers

How do I use a shortcut to comment out code automatically in Textmate?

Is there a shortcut to highlight and comment code in textmate, rather than putting in the comments manually?
cjm2671
  • 14,740
  • 26
  • 84
  • 135
17
votes
3 answers

Pros and cons to RubyMine and TextMate

I need to move to a "serious" Ruby (on Rails) IDE now that Netbeans is discontinuing Ruby support. I don't want to start a trolling war, but could I'd love to hear the pros and cons of using TextMate or RubyMine as an IDE, to help me choose which I…
iainbeeston
  • 1,643
  • 18
  • 20
17
votes
3 answers

TextMate - How to install a bundle?

I see a lot of bundles here I'd like to get my hands on http://svn.textmate.org/trunk/Bundles/ The problem is I don't know how to install them. I've read the section 5 of manual dedicated to bundles, but there's no example how to install those from…
Murgh
  • 497
  • 2
  • 6
  • 12
17
votes
4 answers

TextMate tips for Rails Development

Working on Rails code for a bit has started me on the spiral into obsessively customising my dev environment (I say obsessive as at the last Rails meetup I went to there was some guy who was raving about shaving milliseconds off each line of code…
16
votes
7 answers

How to open an app in terminal and passing the current working directory?

I often want to open the entire directory I'm working in by using the mate command, but how do I pass in the working directory itself? For example, if I'm working in a rails app and I want to open the app folder into the TextMate tree, I would do…
Alex Coplan
  • 12,581
  • 17
  • 72
  • 135
16
votes
2 answers

Can TextMate show tab vs space characters?

Using TextMate on Mac, the "invisibles" can be displayed by using View -> Show Invisibles But the space vs tab characters are not shown, and Preferences doesn't seem to have any entry to change that either. Is there a way to show them? It is…
nonopolarity
  • 130,775
  • 117
  • 415
  • 675
16
votes
4 answers

Change language being spell-checked in Textmate

In OS X applications such as Mail and Firefox you can right click in a text field and change the language being spell-checked. I can't figure out how to do the same in Textmate. Can it be done easily, and if, how?
jacob
  • 1,214
  • 2
  • 13
  • 22
16
votes
1 answer

Generate TextMate language grammar from PEG.js grammar

Is there a tool that translates a PEG.js grammar to a TextMate grammar? I am building my own language and would like to have syntax highlighting for it in my preferred editor, TextMate. The grammar of my language is built with PEG.js. According to…
Manuel Leuenberger
  • 2,257
  • 3
  • 19
  • 27
16
votes
1 answer

How to correct syntax highlighting for setting Rails link or form field "class" in Sublime/Textmate 2

BACKGROUND: In Sublime Text and Textmate, the word "class" is incorrectly highlighted when using the new ruby hash format in a Rails link_to or form field: OBJECTIVE: Is there any way to correctly highlight the "class" keyword as it does when using…
neon
  • 2,721
  • 6
  • 28
  • 43
1 2
3
73 74