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.

textmate2
Filter by
Sorted by
Tagged with
0 votes
1 answer
45 views

regex: how to capture angularjs pattern in source file with textmate2?

I'd like to capture all source file lines matching the following template (actually any img tag where the url contains an angularjs interpolation): <td><img src="rsc/kws.corn.icon.{{cure}}....
Stéphane de Luca's user avatar
0 votes
1 answer
169 views

Find closing html tags nested in php using Textmate?

Is there a way to find the closing html tag that is nested inside php conditionals? For example I have this: <?php if (condition) { echo '<div id="optional">'; } ?> <div id=...
banacan's user avatar
  • 23
0 votes
1 answer
72 views

LoadError when trying to get source code in Ruby

Trying to teach myself Ruby and using the Book Apress Beginning Ruby. I bought TextMate 2 and in the very beginning of Chap. 4 I am being asked for following: Launch Terminal (Completed) Use cd to ...
Tom Branch's user avatar
6 votes
2 answers
6k views

TextMate suddenly showing <CR> tag in code files

I have been using TextMate version 2 for MAC from quite some time now, but suddenly yesterday in my code files I am seeing a <CR> tag. Not sure what the issue is. After doing some googling ...
opensource-developer's user avatar
6 votes
0 answers
620 views

How to exclude specific folders from TextMate 2 file browser using .tm_properties

I'm using a .tm_properties file to exclude certain folders from the file browser of a TextMate 2 project, and it's generally working great. So, for instance, I've got a line like this to exclude a ...
Scott Thiessen's user avatar
1 vote
2 answers
2k views

AppleScript: open frontmost file with another application

I'd like to write an AppleScript program to do the following (Automator would be fine too): I want to open the current active TextMate file (possibly there are several tabs open and other windows) ...
jacobianism's user avatar
0 votes
2 answers
641 views

How to select a non anti-aliasing font in Brackets on Mac?

How can I choose a non anti-aliasing font in Brackets (left) like Textmate 2 (right) on Mac?
ohho's user avatar
  • 51.5k
2 votes
3 answers
4k views

Regex - moving matched text to earlier in line

I have been using regex (in textmate's find & replace tool) to reformat a table of values I've received into a PHP array. I've got most of the way there - but struggling with the final change. ...
steve's user avatar
  • 2,519
0 votes
3 answers
672 views

How can I make Homebrew and CocoAspell coexist?

After much searching on the Internet, I have never seen a satisfactory answer or explanation to the following problem. I would like to use CocoAspell for system-wide spell-checking on OS X 10.9 (plugs ...
Dustin Wheeler's user avatar
4 votes
1 answer
2k views

Error output in Textmate 2 using Python 3.4

I'm using Textmate 2.0 in a Mac OSX and I can't get it to stop printing an error message every time I run a script. It keeps saying: Error in sitecustomize; set PYTHONVERBOSE for traceback: ...
rodrigoburg's user avatar
2 votes
1 answer
1k views

Making TextMate2 highlight every occurrence of a variable?

Is there a way to make TextMate2 highlight every occurrence of a variable when I place the cursor on the variable like in Eclipse?
Jack Twain's user avatar
  • 6,311
0 votes
1 answer
53 views

textmate 2.0 alpha.9543 not automatic use ruby document type

Yesterday I upgraded alpha.9543, When I open a ruby file does not automatically switch ruby document type. I have already installed Ruby bundle. But other bundle is work.
plusor's user avatar
  • 69
1 vote
1 answer
170 views

Textmate2 - How to put spaces between curly brace { } by default

I'm developing Ruby on Rails application in Textmate2. I have to use a lot of curly braces {} syntax in Rails coding. By default, when I type opening curly brace { , then {} is automatically ...
Steve.NayLinAung's user avatar
0 votes
0 answers
340 views

Ignore DTD warning in textmate2 XML validation

I'm using textmate2 for editing my XML files. Sometimes I want to validate the correctness of the XML. The bundle "XML" offers the syntax validation. However, it gives me the following error: "...
Rogier Lommers's user avatar
0 votes
2 answers
544 views

OSX Mavericks Textmate 2 install permissions error

I've been using textmate happily for a long time now but after installing the newest version of textmate 2.0 I'm receiving the following error when i open the app. The file could not be saved because ...
ben.m's user avatar
  • 621
1 vote
2 answers
580 views

Textmate 2: Change the project folder

I have a weird problem in Textmate 2 that I didn't experience before. I usually open TM2 on the command line by cd'ing into the project folder, then enter mate .. Strangely, for one project, the "...
Joshua Muheim's user avatar
1 vote
0 answers
615 views

Running Matlab code in Textmate

I am having difficulties executing Matlab code in the Terminal using the matlab.tmbundle for TextMate... Spawning Matlab works fine as well as running code directly from the terminal but it seems that ...
markdjthomas's user avatar
0 votes
2 answers
2k views

How to prevent ._ (dot underscore) files?

I am using Textmate 2 to edit a rails project on remote Linux server via sshfs. When I save a file (e.g. README.rdoc) there is another file created (i.e. ._README.rdoc): -rw-rw-r-- 1 4096 Feb 17 ...
ohho's user avatar
  • 51.5k
0 votes
1 answer
263 views

Trying to create partial from selection in Textmate 2 throws error

I'm getting the following error when trying to create a partial from a selection - Ctrl + Shift + H. Any idea what could be causing it / how to fix it? /Users/harry/Library/Application Support/...
Advocation's user avatar
1 vote
2 answers
3k views

Command R browser refresh in TextMate 2

Using the HTMLbundle in TextMate version 2.0-alpha.9503, OSX 10.9. I have a html page open in the editor. When I press command R the first time it switches me to Chrome and refreshes the page. On ...
user772110's user avatar
0 votes
1 answer
193 views

Textmate2: change autocomplete key

I´m trying to change the keybinding in textmate2 - I want to change autocompletion from "ESC" to "cmd + space" but I don´t know how. In Textmate (1) you could do that by editing the shortcuts in the ...
jacksbox's user avatar
  • 911
0 votes
1 answer
83 views

Can I create a "insert FIXME / CHANGED list" bundle in Textmate 2?

In Textmante 2, I have a very usefull bundle: todo ->, this inserts: =begin TODO: =end then, when I use “show TODO list” bunlde I can see TODO, FIXME, CHANGED… code, but I can’t insert FIXME ...
Albert Català's user avatar
1 vote
1 answer
2k views

How to set background color(s) of Textmate 2?

As shown in the above screen shot, the background of code (inside <? ... ?>) is different from the area outside PHP code. How can I change the background color of PHP code? For example, if I ...
ohho's user avatar
  • 51.5k
0 votes
2 answers
79 views

Open a Grails project using TextMate

I have created a simple grails application. When i ls the folder the following is what i get: Ma-MacBook-Pro:library ma$ ls application.properties lib test grails-app scripts ...
Sharon Watinsan's user avatar
1 vote
1 answer
1k views

TextMate 2 command-line `mate` failing: no /bin/mate in 'SharedSupport/...'

I've tried several solutions on OS X Snow Leopard to get TextMate2 to recognise mate filename, but it appears there's no 'mate' for the mate command to call: $cd /Applications/TextMate.app/Contents/...
Dave Everitt's user avatar
  • 17.5k
0 votes
1 answer
251 views

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 ...
ilovebigmacs's user avatar
1 vote
2 answers
39 views

Included files after list not rendered correctly

main.asc: == Items include::foo.asc[] include::bar.asc[] foo.asc === Foo Title ==== List of things * thing one * thing two bar.asc === Bar Title this is a summary of bar When main.asc is ...
craig's user avatar
  • 26k
0 votes
1 answer
276 views

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 ...
whatyouhide's user avatar
  • 16.3k
6 votes
1 answer
2k views

Opacity of background in Textmate2 [closed]

I am new to Textmate 2. I have seen few people using textmate with a reduced opacity of the background color. I am trying to find a way to achieve that, but could not get to anything closer. I tried ...
Wizard's user avatar
  • 1,174
3 votes
3 answers
2k views

Prompt to reload an externally modified file in Textmate 2?

Im finding myself using TextMate 2 more and more for development these days One thing that is bugging me is that it does not seem to reload a file when it is changed externally. This is a big ...
carpii's user avatar
  • 1,926
1 vote
1 answer
67 views

Include external folders in project file browser

In Textmate 1 I was used to being able to include folders from different locations in my project drawer. Is this still possible in Textmate 2? Example: I’ve got the follwing (real) file structure: /...
Rob's user avatar
  • 1,268
5 votes
1 answer
1k views

How can I simultaneously use Latex and Markdown syntax highlighting in Sublime Text 2 or TextMate 2?

I use Pandoc which allows mixing of markdown and latex. It would be nice to have syntax highlighting working for both. Any thoughts on the best way to achieve this?
bjw's user avatar
  • 2,007
1 vote
1 answer
169 views

Is there a way to turn off page-at-a-time scrolling animation in Textmate 2?

Textmate 2 animates scrolling when using PageUp/PageDown keys. This against the Human Interface Guidelines, and it is sloooooooow. Anyone know how to turn it off?
Michael Johnston's user avatar
0 votes
1 answer
215 views

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 ...
titusmagnus's user avatar
  • 2,034
57 votes
3 answers
13k views

How can I show dotfiles in Textmate 2?

I recently upgraded to Textmate 2 and now my dotfiles are not showing up in the file browser. Obviously, this is important when working with stuff like .htaccess files. Is there a way to enable this ...
user avatar
4 votes
1 answer
177 views

Textmate TODO not working with JavaScript

I am trying to use Textmate's TODO bundle : // TODO: change click to tap /* TODO change click to tap */ Neither of these markups are captured... How can I specify a TODO in JavaScript?
Justin D.'s user avatar
  • 4,956
0 votes
1 answer
223 views

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 have: /Users/koos/Developments/RubyDevs/RubyTests/RubyLearn/Test1.rb and /Users/...
Koos Brandt's user avatar
0 votes
1 answer
98 views

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 ...
Graham P Heath's user avatar
5 votes
1 answer
737 views

How can I remove SCM file status from the project drawer in Textmate 2

Can I remove these status icons from the files in my project drawer? (i.e. the red x's and green +'s in the image below) I tried removing some SCM bundles from Textmate but that didn't do the trick......
Peter Berg's user avatar
  • 6,154
0 votes
1 answer
222 views

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/....
Mark Robinson's user avatar
0 votes
1 answer
46 views

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 ...
Joshua Muheim's user avatar
0 votes
1 answer
2k views

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: ...
Darwin Santos Arismendy's user avatar
0 votes
1 answer
660 views

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 ...
ylluminate's user avatar
  • 12.2k
4 votes
1 answer
803 views

How to remove <NUL> character in Textmate

After copying and pasting from a PDF document there are a stream of <NUL> characters. How do you remove <NUL> characters in Textmate a document quickly?
banderson623's user avatar
  • 2,748
0 votes
1 answer
522 views

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 ...
marcamillion's user avatar
  • 33.5k
0 votes
1 answer
822 views

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 ...
John O's user avatar
  • 5,163
15 votes
2 answers
2k views

In Textmate2, how do you disable the header-styles in Markdown documents?

I am currently trying to disable or tweak the new "headline-style" that was introduced with TM2 (or the bundle?). The undesired behaviour will change the font-size and family for the line depending ...
m3nt0r's user avatar
  • 477
0 votes
1 answer
301 views

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 ...
marcamillion's user avatar
  • 33.5k
1 vote
2 answers
231 views

Textmate, how to find out which theme I am using?

I am using TextMate version 2.0-alpha.9387, I don't see any options in Preferences.
ideawu's user avatar
  • 2,287
3 votes
2 answers
1k views

Sass syntax highlighting for TextMate2 not working

I'm using TM2 and I love it. Sadly, the syntax highlighting for Sass doesn't really seem to work. Is it only me? For example, create a new "xxx.sass" file with the following content: +h5bp-normalize ...
Joshua Muheim's user avatar