Questions tagged [textmate2]

TextMate is a text editor for macOS; on topic questions include those about general use of the software and development of bundles and extensions.

TextMate is a text editor for macOS, created by Allan Odgaard in 2004. Although it is still actively maintained, public-facing development was largely dormant for a decade after 2007, during which time many users migrated to other software.

The code is open source, and is hosted on Github. Questions about development of the editor and its bundles are on topic at Stack Overflow.

As an editor targeted primarily at the development community, questions about general use of TextMate are also on-topic. Please check end-user documentation for possible solutions before posting.

139 questions
0
votes
1 answer

How to change key binding for ERB tag in TextMate 2?

When I want to insert an ERB tag inside an .html.erb file in TextMate 2, the default key binding is ctrl+>. Pressing it several times cycles between <%= %>, <% %>, etc. I would like to change it to cmd+shift+.. How can I achieve this? I have tried…
ilovebigmacs
  • 983
  • 16
  • 28
0
votes
1 answer

TextMate 2 - Smart Typing Pairs feature and tweaking

I use the TextMate 2 SCSS bundle everyday. It has a very annoying behavior: it "autocompletes" some stuff using the "Smart Typing Pairs" feature. It's very useful most of the time (e.g. I type ( and it types ) automatically), but buy looking at the…
whatyouhide
  • 15,897
  • 9
  • 57
  • 71
0
votes
1 answer

Is it possible to add a separator in TextMate's function popup?

Is it possible to add one or more separators to the function popup in TextMate 2? Some context may help understand what I mean: I'd like to group the functions into logical sections, similar to what Xcode does with the '#pragma -' option. Is this…
titusmagnus
  • 2,014
  • 3
  • 23
  • 23
0
votes
1 answer

Textmate 2 Ruby Run settings for current directory

I have Ruby 2.0.0 and TextMate 2 playing along nicely, after some TM_RUBY settings from this blog post. However I…
0
votes
1 answer

Bundle items fail after having previously worked

Depending on the bundle item the exact error for a failing Textmate2 bundle can change, but his is the one I was getting for "Comment Line / Selection" on a previously pristine Textmate2 Comment Line / Selection:16:in 'require': no such file to load…
Graham P Heath
  • 7,009
  • 3
  • 31
  • 45
0
votes
1 answer

How do I convert HTML to HAML in textmate?

I'm trying to write a textmate 2 command to convert the selected text from HTML to HAML. I'm use RVM so I installed html2haml gem to a textmate specific gemset and set TM_RUBY variable to /Users/mark/.rvm/bin/ruby-1.9.3-p392@Textmate as per…
Mark Robinson
  • 1,479
  • 2
  • 15
  • 34
0
votes
1 answer

Switch two values using Search&Replace in TextMate2?

I often have to switch two values in TextMate. Original text: @person = company.person Needed text: @company = person.company What's the easiest way to do this using Search&Replace? Thank you.
Joshua Muheim
  • 12,617
  • 9
  • 76
  • 152
0
votes
1 answer

Column Indentation Guide on Textmate

I'd like to know if there's a bundle or a preference somewhere in Textmate to get Sublime's white dotted column delimiter. Look at the screenshots. Look at this PHP function in Textmate (source: darwinsantos.com) Now look at it in…
0
votes
1 answer

How to use the "Project Drawer" in TextMate 2 when it doesn't seem to exist?

On TextMate 2 and opening two files in two different locations such as /path/1/file.txt and /path/2/file.txt, I am no longer seeing a way to perform diffs as before since one cannot select files in the project "drawer." We now have a file browser…
ylluminate
  • 12,102
  • 17
  • 78
  • 152
0
votes
1 answer

When I do git diff | mate2 it opens Textmate but doesn't show me the diff

I have tried all manner of git diff commands. From using the actual commit hashes: $ git diff e2951679823lkdasdkjn38 7jhlkdjhlakj3kl2jlj2a90 | mate2 To using two branches: $ git diff master develop | mate2 Both of which just launch Textmate2 but…
marcamillion
  • 32,933
  • 55
  • 189
  • 380
0
votes
1 answer

I'm working on a Pro*C syntax highlighting file for Sublime Text 2

Is there any way to include the color highlighting rules in the tmLanguage file itself? For those who aren't familiar with it, Pro*C is sort of this mutant hybrid love-child of SQL and C, and both syntaxes are present in the file. However, there…
John O
  • 4,863
  • 8
  • 45
  • 78
0
votes
1 answer

How can I see live previews while editing CSS in a Rails App in Textmate 2?

All I want to prevent is having to constantly refresh the page (and subsequently make DB calls on the view) which takes forever. I would love to be able to just making CSS changes and see it reflected in the document/page/site immediately. Anyway to…
marcamillion
  • 32,933
  • 55
  • 189
  • 380
0
votes
1 answer

Displaying Docbook section titles in TextMate's function popup

I'm working on a bundle for DocBook 5 XML, which frequently includes content like:
This is my awesome Java Class called <classname>FunBunny</classname> FunBunny is your friend.
I want the titles…
lyricsboy
  • 2,999
  • 24
  • 21
0
votes
1 answer

How do you upgrade Textmate to version 2

I have Textmate (1.5 I think) and thought I would look at the new version 2. I cant find instructions anywhere on how to upgrade/get the new version! I'm sure it must be really obvious but I just cant see how. Unless I have to compile from the…
giorgio
  • 2,115
  • 5
  • 23
  • 39
0
votes
1 answer

Making Sublime Text more like TextMate

Well, I'm under Mac OS X and I use TextMate 1.5.11 to compile LaTeX documents. But I've found that Sublime Text 2 has some features I like more than TextMate (and also TM v2, which is in beta). TextMate 2 has some of that features, but it's still…
Manuel
  • 301
  • 2
  • 11
1 2 3
9
10