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
11
votes
2 answers

Textmate: remap Escape for word completion

In the Textmate code-editor I use the Escape-key, for word completion, alot. Is there a way to bind another key-shortcut to its functionality ? (ps: my CAPSLOCK is already CTRL)
Julius Eckert
  • 1,481
  • 4
  • 16
  • 24
10
votes
4 answers

How to Autocomplete HTML Tags in TextMate?

I'm going thru Michael Hartl's Ruby on Rails tutorial and, like him, using TextMate as my editor. Today, in chapter 3 of his tutorial, I saw him do something in TextMate I've not seen done before: As he types a tag in a file called "whatever.html",…
D. Simpson
  • 1,882
  • 17
  • 32
10
votes
1 answer

Regular expression to select all whitespace that IS in quotes?

For example: string text = 'some text "and some more" and some other "this is a second group" okay the end';. I'd like to capture all the spaces that are between quotation marks. The end goal is to replace those spaces with commas. The end goal, for…
Klnh13
  • 103
  • 1
  • 5
10
votes
3 answers

Formatting the date in unix to include suffix on day (st, nd, rd and th)

How can I add the suffix on the day number of a unix date? I'll explain. I have a TextMate bundle snippit that writes out today's date. It uses unix date and formatting. Here is the code: `date +%A` `date +%d` `date +%B` `date +%Y` It…
skymook
  • 3,401
  • 35
  • 39
10
votes
1 answer

MacVim: Thicker font rendering compared to TextMate

This is bothering me for some time now. With same source file, same theme (almost) the thickness of text between MacVim and Textmate is different. I have linked to the screenshot .. here. There are 3 editors in it. Leftmost is sublime v3, middle is…
bitflood
  • 441
  • 5
  • 15
10
votes
1 answer

TextMate Live Preview of GFM (GitHub flavored Markdown)

I found TextMate support for GitHub flavored Markdown http://github.github.com/github-flavored-markdown/ and now try to install (lots of ruby stuff needs to be installed, struggling..) then will try to have live preview feature. Perhaps, it is…
user1028880
9
votes
6 answers

Execute Code in VIM similar to Cmd+R in Textmate or Cmd+B Sublime Text2

Hey is there a way or plugin to execute Code e.g. Ruby in my case, directly from my vim editor. I know this from Textmate, where you can execute Code with Cmd+R or Cmd+B in Sublime Text2. In Sublime Text it is called Build System. Thanks for advise!
daniel
  • 3,105
  • 4
  • 39
  • 48
9
votes
4 answers

Has anyone managed to use older Textmate bundles with Textmate2?

I specifically want to be able to use Ackmate bundle, peepcode (the new 'Go to file' seems good enough) and some other custom bundles with TM2. I tried moving the existing bundles to a location ~/Library/Application…
jake
  • 2,371
  • 1
  • 20
  • 31
9
votes
1 answer

How to make Gedit look like Textmate?

I want to make Gedit look like Textmate, and act like it too. I have read many tutorials on the net, but can't find an easy to follow guide. I am using Ubuntu 11.04 and would like to use it for Ruby on Rails and other web languages. I want only the…
gerky
  • 6,267
  • 11
  • 55
  • 82
9
votes
3 answers

VSCode color theme function calls

I am doing my own local tweaks to this color theme for VSCode. The theme will be used to mainly code in Java and C++. I would like function and method declaration color to be different from function and method invocation calls. So the word Foo in…
Scorb
  • 1,654
  • 13
  • 70
  • 144
9
votes
1 answer

Force textmate to apply a specific format's syntax highlighting?

I'd like to force HTML syntax highlighting on another extension (one of my colleagues has decided to use a different file naming scheme for his template files). In other editors where can be manually selected, but Textmate doesn't seem to let me.…
mikemaccana
  • 110,530
  • 99
  • 389
  • 494
9
votes
1 answer

Setting Shortcut Keys in Textmate

I am switching to textmate and there are a few things I want to change. I have tried Googling for the answer, but haven't found a simple explanation for how to rebind shortcuts globally. First, tab switching doesn't work with Cmd+Shift+{ and…
jcampbell1
  • 4,159
  • 3
  • 33
  • 35
9
votes
4 answers

TextMate js.erb: toggle <%= %>, <% %>

I'm using a js.erb template to render some jQuery. When editing an html.erb file in TextMate, I frequently use the convenient key combo, ctrl+>, to create and then toggle the following tags: <%= %> <% %> <%- -%> <%# %> This shortcut doesn't…
balexand
  • 9,549
  • 7
  • 41
  • 36
9
votes
4 answers

Textmate Rails3 no such file to load — bundler

When I try to run tests from TextMate in Rails3 i get an error that I trace back to boot.rb. When I try to run boot.rb via textmate I get this error: LoadError: no such file to load — bundler method gem_original_require in custom_require.rb at line…
Schneems
  • 14,918
  • 9
  • 57
  • 84
9
votes
1 answer

'Failure running Jump to Method Definition' error: undefined method `current_line' for TextMate:Module

Update: I figured it out. Ctrl-F only works when the method I'm searching is NOT selected. The cursor only needs to be IN the method name. I just upgraded to TextMate2. When I select a method and use Ctrl+F to go to its definition, I get: > Failure…
Bad Request
  • 3,990
  • 5
  • 33
  • 37