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

scopeAttributes with multiple values

I'm using the Strip-Whitespace-On-Save & Ensure-Newline-At-The-EOF bundles. Now there are some files for which I don't want anything to automatically happen (I'm testing with CSV, since it's sooo delicate). I've tried the following .tm_properties…
tiennou
  • 487
  • 3
  • 13
0
votes
2 answers

Remove tab indicator in Textmate 2

In Textmate 2, Everytime I typed tab, Indicators(small dot) are showed like this image. Can I hide or disalbe it?
Jinbom Heo
  • 7,248
  • 14
  • 52
  • 59
0
votes
0 answers

How to understand patterns defined in TextMate?

I am learning TextMate in order to define customized keyword for highlighting in a Orion editor(A browser based editor who is using TextMate grammar). I read this link http://manual.macromates.com/en/language_grammars.html#language_rules. And I…
Joey Yi Zhao
  • 37,514
  • 71
  • 268
  • 523
0
votes
1 answer

How do I get TextMate 2 to enable spellchecking in a scope that is not checked by default?

TextMate 2 has per-context settings for spell-checking: So in one document, spellchecking can be on for text, off for code, back on in quoted strings, off in comments, etc. In this case, I want to change a default spell-checking to enable checking…
tim
  • 3,559
  • 1
  • 33
  • 46
0
votes
1 answer

How do make snippets work for Ruby On Rails in Textmate 2?

On a fresh install of Textmate2, you used to be able to type hm while editing in a model and it would type out a whole has_many line for you, but now it just types a tab. All of the text-completion seems broken. The ones from Ruby are still…
IAmNaN
  • 10,305
  • 3
  • 53
  • 51
0
votes
1 answer

Send multiple lines of quoted text to IPython in Terminal Window

I want to send a selected group of lines to my current ipython window from a texteditor (It's TextMate in this case, but that's largely irrelevant.) The script uses a bash call so it can accept the variable and then an Applescript call to push the…
WildGunman
  • 393
  • 4
  • 13
0
votes
1 answer

TextMate Bundle Document icons

I am looking for these little document icons (not only for Python) inside of TextMate 2. I looked in the Bundles folder of TextMate, but I couldn't find them. I really would like to use these icons as document icons in Finder. Does anybody knows…
fgroeger
  • 422
  • 5
  • 18
0
votes
1 answer

Where's the Macro Bundle in TextMate2

I'm confused. The Textmate manual says to record a macro you should choose Bundles -> Macro. But there's no "Macro" on the Bundles menu in my Textmate2 installation. And it's not that it's turned off in TextMate Preferences. It's not in that…
Richard Milewski
  • 247
  • 4
  • 12
0
votes
1 answer

Calling gdal from Ruby

Trying this from TextMate. Results shown at end. If I copy the result into Terminal it runs fine. Probably something simple. I shortened the paths with ... in this submission #!/usr/bin/env ruby require 'shellwords' InputDirPath =…
Greg
  • 2,359
  • 5
  • 22
  • 35
0
votes
1 answer

Textmate2 default search location

How do I change the default search location in Find (command-shift-F) for TextMate2? Right now it defaults to my home directory (which is almost never what I want), and I'd like it to search only the current files (as if you click the drop-down menu…
ceiling cat
  • 5,501
  • 9
  • 38
  • 51
0
votes
0 answers

How do I exclude a specific file, without excluding every file with an identical name?

In TextMate 2's .tm_properties I can exclude a file with a line such as: exclude = "{index.php}" However I'd like to exclude such a file in a specific location, not every file with that name. Obviously, trying /index.php or \/index.php didn't work.
o0'.
  • 11,739
  • 19
  • 60
  • 87
0
votes
1 answer

Why Doesn't This TextMate 2 Bundle Command Set a Codebug Breakpoint?

This TextMate 2 bundle command: echo $TM_FILEPATH echo $TM_LINE_NUMBER open codebug://send?file="$TM_FILEPATH"&line="$TM_LINE_NUMBER"&op="add"&open="1" generates this echoed output: …
Bob Rockefeller
  • 4,492
  • 2
  • 28
  • 35
0
votes
1 answer

Configure TextMate editor for syntax coloring of OpenCV libraries

I am new to OS X and using TextMate as an editor. In TextMate, i am using Mac Classic theme which provides the syntax coloring for std C++'s. Questions: How can i configure Textmate so that it can provide the syntax coloring to OpenCV datatypes…
skm
  • 5,015
  • 8
  • 43
  • 104
0
votes
2 answers

Textmate 2: How do I set the tab size for .rb files?

I have a .tm_properties file in my home folder with the following contents: softWrap = true tabSize = 4 softTabs = true However, if I open an .rb file and hit tab, it will only indent 2 spaces on the new line. How can I make it 4?
painbot
  • 160
  • 9
0
votes
1 answer

Textmate 2 + Rails 4 : no shortcuts for ruby tags in application.html.erb

In Textmate 2, my shortcuts for ruby tags don't work on the application.html.erbfile. It works on all the other views.enter code here Also, I don't have color coding for my css on the css.scss pages. Is this due to TM2 still in beta, or are there…
fatfrog
  • 2,118
  • 1
  • 23
  • 46