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

Regex to find A and not B on a line

I'm looking for a regex to search my python program to find all lines where foo, but not bar, is passed into a method as a keyword argument. I'm playing around with lookahead and lookbehind assertions, but not having much luck. Any help? Thanks
Zach
  • 18,594
  • 18
  • 59
  • 68
12
votes
3 answers

Indentation annoyance with CSS in Vim

I've moved from TextMate to Vim lately, and am really liking the switch. However, I have an itch regarding the way Vim handles indentation within curly braces using the CSS syntax. I use simple_pairs.vim, which may or may not have something to do…
Johan Sahlén
  • 387
  • 1
  • 3
  • 9
12
votes
1 answer

Change theme in new TextMate?

I am new to TextMate. Double click the .tmTheme file dont install and set the theme for me. And There is no "Font&Color" tab in recent built TextMate, How can i change the theme?
Maadiah
  • 431
  • 6
  • 20
12
votes
2 answers

Highlighting the current line in TextMate 2

In TM 1.x, there was a preferences setting to enable the highlighting of the current line. This option seems to have disappeared in TM2. I assume there is some setting in tm_properties that can be set, but I cannot figure it out. I've tried setting…
Chris Fonnesbeck
  • 4,143
  • 4
  • 29
  • 30
11
votes
1 answer

Is it possible to import TextMate themes to IntelliJ IDEA?

Is it any way to automate import TextMate themes to IntelliJ IDEA, like converter between these two formats?
Wojciech Bednarski
  • 6,033
  • 9
  • 49
  • 73
11
votes
2 answers

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…
pojo
  • 5,892
  • 9
  • 35
  • 47
11
votes
1 answer

Setting up TextMate for Haskell programming on Mac OS X

I am new to mac, and am in the process of getting my computer setup with all the programs I need, one of them being Haskell. To my surprise, the Haskell platform for OS X is not like in Windows (where there is an GUI editor built on the platform…
Panicos
  • 311
  • 4
  • 15
11
votes
3 answers

Amend HTML Grammar based on attributes in TextMate

I've recently started experimenting with jQuery Templates, which rely on your ability to wrap HTML within SCRIPT tags. The…
kim3er
  • 6,306
  • 4
  • 41
  • 69
11
votes
2 answers

Replace comma with tab in Textmate

Is there a simple way to replace commas with tabs in Textmate, hopefully using the Edit > Find (command F) function? I've tried /t and '/t' and haven't been able to find documentation about the correct syntax. Also, trying to avoid writing a Ruby…
Milktrader
  • 9,278
  • 12
  • 51
  • 69
11
votes
3 answers

How may I apply double quotes around every value of csv file using TextMate?

I have a csv file with the following format: example csv: bear,brown,mean,large ant,black,strong,tiny cat,yellow,moody,small How may I apply double quotes around every value? How may I accomplish this using regex? I am using TextMate (text…
Brad
  • 12,054
  • 44
  • 118
  • 187
11
votes
3 answers

TextMate frozen attempting to open a large file

I attempted to open a large javascript file with TextMate and it is now frozen. I have tried closing and reopening TextMate but it continues to freeze due to the recently opened file. Is there a way to reset/clear the recently opened files in…
Mike Croteau
  • 1,062
  • 2
  • 16
  • 43
11
votes
2 answers

How do I install the ES6 tmLanguage into TextMate 2?

I want to install the ES6 language syntax highlighting at https://github.com/Benvie/JavaScriptNext.tmLanguage for TextMate 2. I cloned the repo, but it has a .tmLanguage directory with multiple files (.tmTheme, .tmLanguage, etc.). Apparently, TM2…
deitch
  • 14,019
  • 14
  • 68
  • 96
11
votes
5 answers

Completely uninstall/restore Textmate 2

I accidentaly misconfigured the bundles settings of Textmate 2. Now I want to restore the default setting. I tried to remove the following directories: rm -r /Library/Application\ Support/Textmate rm /Library/Preferences/com.macromedia.* I also use…
blueSurfer
  • 5,651
  • 13
  • 42
  • 63
11
votes
0 answers

.vim syntax highlighting to textmate or sublime text 2

I have a .vim script for highlighting a specific program's syntax (Mplus SEM software). I am wondering if there is an easy way to convert this to textmate or sublime text 2 or do I need to write my own. Best and thanks in advance. Vim script Note: I…
user2316204
  • 121
  • 1
  • 5
11
votes
2 answers

How can I find the character code of a special character in my text editor?

When pasting text from outside sources into a plain-text editor (e.g. TextMate or Sublime Text 2) a common problem is that special characters are often pasted in as well. Some of these characters render fine, but depending on the source, some might…
Aaron Fowler
  • 474
  • 1
  • 3
  • 8