Questions tagged [textmate]

TextMate is a text editor for macOS.

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 current version of the software is 2.0.23.

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.

1125 questions
0
votes
1 answer

Copy yaml formatting (indent) from one file to another

A translator completely messed up a yaml file by copying everything into word (don't ask). I have already cleaned up the file using regexes, but the indent (spacing) is now missing; everything starts at the first…
ruby24
  • 309
  • 1
  • 15
0
votes
0 answers

Textmate System.out throws error

I've been using Textmate 2.0 for Java. I get no error when I use JOptionPane class. However, when I use System.out and System.in, I get the following error (see screenshot below). What is interesting is that the program compiles and run correctly…
Rohit
  • 5,840
  • 13
  • 42
  • 65
0
votes
1 answer

TextMate - scroll tabs

TextMate has one irritating 'feature' that shows up when editing lot of files (within a given project). in case there is no place at tab bar for new tabs, a ">>" is shown. it simply shows a popup with rest of files. that's ok, but why when one…
Michal
  • 677
  • 6
  • 16
0
votes
1 answer

Is it possible to Tab-trigger a snippet in Textmate according to a Regex, instead of a character?

Ok... I guess it may sound stupid or lazy, but I'm doing a lot of CSS lately, and that simple fact of having to type "px" right after every single width or height or margin and so on is drivin' me nuts. I usually 'refine' pixels' values in Firebug…
ALFABreezE
  • 57
  • 6
0
votes
1 answer

How do I save (backup) my snippets in TextMate?

I have a bunch of custom textmate snippets and have been backing them manually. However, I continuously update (& subsequently debug) these snippets so am having a hard time keeping them backed up (manually). There are, for example, a lot of…
boulder_ruby
  • 38,457
  • 9
  • 79
  • 100
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

Failing to run Rake-Task in Textmate

I'm starting to write Ruby code for Chef using Textmate 1.5.11, and need some help with an error i'm getting when attempting to run tasks from a RakeFile. When I try to run Bundles->Ruby->rake->run rake task, I'm expecting to be prompted for which…
Jean Valjean
  • 23
  • 1
  • 6
0
votes
1 answer

Textmate, open file at Caret

I bet this is really obvious but I can't find how to open the linked file that the Caret is currently on in Textmate. For example in the likes of Dreamweaver you can click in the index.html portion of
amjags
  • 39
  • 5
0
votes
1 answer

Mercurial - How to View Revision with TextMate?

I understand that I can print a revision in the terminal with hg cat filename -r, but it is often convuluted and hard to read in the terminal window. Is there a way I can open a revision with textmate from terminal, similar to using mate filename?…
user22979
  • 169
  • 1
  • 4
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
0 answers

possible to paste 'in place' into textmate without line breaks and affecting other text

I use Textmate for most of my text editing. One thing I would like to do is to be able to past a multiline piece of text into a selected space and not cause line breaks to surrounding text. I am not sure if this is at all possible. I have included a…
timpone
  • 19,235
  • 36
  • 121
  • 211
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

Find and replace numbers in textmate

I am trying to remove huge sequence of time stamp on a text file. It's formatted like this: Service Commands(04:59) Using system-config-services(03:49) I want it to look like this: Service Commands Using system-config-services I tried with the…
JustinBieber
  • 355
  • 3
  • 5
  • 23