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
150
votes
4 answers

Is there a way to make a link clickable in the OSX Terminal?

I am planning on developing an Mxmlc to Textmate formatter, one that formats mxmlc errors as clickable links, so you can open them up quickly in Textmate as Textmate has a url scheme e.g.: txmt://open/?url=file://~/.bash_profile&line=11&column=2. I…
japetheape
  • 1,610
  • 2
  • 11
  • 6
74
votes
11 answers

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,…
60
votes
21 answers

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…
ivanTheTerrible
  • 2,796
  • 4
  • 23
  • 25
56
votes
7 answers

Set TextMate as the default text editor on Mac OS X

How can I set TextMate as default text editor on Mac OS X? I've tried it with ln -s /Applications/TextMate.app/Contents/Resources/mate ~/bin/mate export EDITOR='mate -w' but that doesn't work.
Ben
  • 721
  • 1
  • 7
  • 13
54
votes
7 answers

Where to find a list of scopes for Sublime2 (or textMate?)

in .tmTheme files the scope key defines how a element is highlighted: name HTML: Attribute Values scope meta.tag string.quoted, meta.tag string.quoted…
Alex
  • 60,472
  • 154
  • 401
  • 592
53
votes
16 answers

Editing remote files over SSH, using TextMate?

I LOVE using TextMate on my MacBook. It's great. Unfortunately, I want to edit some files directly on my dev server, since it's difficult to recreate the environment locally. I'm using Git, so one alternative is to just edit locally, git commit, git…
Zack Burt
  • 7,308
  • 8
  • 50
  • 80
45
votes
13 answers

What ever happened to Textmate 2?

What ever happened to Textmate 2?
user73481
  • 901
  • 2
  • 9
  • 15
45
votes
7 answers

Compile CoffeeScript on Save?

Is there anyway to easily compile CoffeeScript on save? I'm using TextMate or Sublime Text 2.
fancy
  • 41,315
  • 56
  • 147
  • 225
44
votes
1 answer

Regex to replace values that include part of match in replacement in sublime?

I've come up with this regex that finds all words that start with $ and contain _ underscores: \$(\w+)_(\w+) I'm basically searching for variables, like $var_foo etc. How do I replace stuff using the regex groups? For example, how can I remove the…
Alex
  • 60,472
  • 154
  • 401
  • 592
43
votes
30 answers

What are some useful TextMate shortcuts?

Macs are renowned (or bemoaned) for having an extensive number of shortcuts. However, OS X itself pales in comparison to the shortcut lists in TextMate and its bundles. What are some useful keyboard shortcuts you use?
Tony Pitale
  • 1,172
  • 2
  • 11
  • 23
43
votes
7 answers

TextMate alternative for Linux

Is there any TextMate alternative for Linux? Something like e-TextEditor for Windows
Jakub Arnold
  • 79,807
  • 86
  • 218
  • 314
35
votes
4 answers

Textmate tab and de-tab selected block

Recently switched to Textmate on Mac for coding. On PC when ever I want to tab in or out a block of code I just highlight and press tab or shift+tab to move it in our out. It's very useful when you are adding an extra loop or conditional statement…
Derek Organ
  • 7,733
  • 16
  • 54
  • 73
33
votes
9 answers

How can I make Textmate always ignore the /log folder in the "Find in Project" search?

How can I make Textmate always ignore the /log folder in the "Find in Project" search?
razenha
  • 7,240
  • 6
  • 34
  • 52
30
votes
4 answers

Error running osascript -e 'tell app "TextMate" to reload bundles'

I'm trying to install Cucumber bundle for TextMate2. I followed the following instructions from the official page https://github.com/cucumber/cucumber-tmbundle: mkdir -p ~/Library/Application\ Support/TextMate/Bundles/ cd ~/Library/Application\…
Nicolas Garnil
  • 6,146
  • 3
  • 33
  • 48
30
votes
1 answer

Bracket Highlighting in Textmate (javascript)

I have some gnarly functions in javascript that I am using Textmate to edit. I see an extremely short flash of the matching bracket, but it is almost imperceptible if you don't arrow over the bracket repeatedly. Is there a way to make the bracket…
Joel Hooks
  • 6,059
  • 3
  • 31
  • 37
1
2 3
73 74