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

Meaning of question mark and x in a regex group

I'm trying to learn Atom's syntax highlighting/grammar rules, which heavily use JS regular expressions, and came across an unfamiliar pattern in the python grammar file. The pattern starts with a (?x) which is an unfamiliar regex to me. I looked it…
beardc
  • 20,283
  • 17
  • 76
  • 94
7
votes
3 answers

Is there any easy way to toggle "do/end" and "{}" in ruby in Vim?

Is there any easy way to toggle "do/end" and "{}" in ruby in Vim? (TextMate does this with ^{.)
TK.
  • 27,073
  • 20
  • 64
  • 72
7
votes
1 answer

Textmate shows files in the project folder that have been deleted

This might be a silly question, but can we prevent the displaying of old references in the project list view? I see files that were deleted but still show with an "X" icon. I wish I could attach a screenshot.
user1781626
7
votes
2 answers

How to Emulate TextMate's Command-Return Feature in Vim

TextMate has a feature where pressing Command-Return at any point inserts a new line below the current line placing your cursor at the beginning of the new line. This works much (exactly?) like pressing 'o' while in command mode in Vim. Is there a…
dstrelau
  • 353
  • 1
  • 4
  • 5
7
votes
3 answers

show hidden files and folders in project drawer in textmate

By default, textmate does not show all files and folders in the project drawer. how do I make textmate project drawer show hidden files, in particular all files and directories beginning with a dot?
Viktor Trón
  • 8,774
  • 4
  • 45
  • 48
7
votes
1 answer

How to change file type in textmate

It will give you a selection when you open a new file in Textmate. It asks you what the file type is and let you select a grammar for the new file. So how to change the file grammar after I selecting the grammar once?
Kerby
  • 81
  • 3
7
votes
2 answers

How do I get git to use Textmate as my default editor?

At the command-line, if I do mate it opens up the right file for me in TextMate. But when I do: $ mate -v open: invalid option -- v Usage: open [-e] [-t] [-f] [-W] [-R] [-n] [-g] [-h] [-b ] [-a ]…
marcamillion
  • 32,933
  • 55
  • 189
  • 380
7
votes
3 answers

RSync on save in VIM

I'm looking for a way to map the :w command so that when I use it, it will rsync the current directory and save the file in question. Ideally, the response generated by the rsync command should be returned in vim, but not in the the current file,…
joe
6
votes
2 answers

How can I send selected text (or a line) in TextMate to R running on Terminal

I just started using R on Terminal because its tab function. But I have no idea how to send the selected text in TextMate to the Terminal. Could expertise show me how to write the Command in TextMate? Thanks!
Naiqi
  • 65
  • 4
6
votes
3 answers

TextMate - auto add closing HTML tag

Is there a way to make TextMate automatically add a closing HTML tag when I type the opening one? Something like what Notepad++ does under Windows/Linux, or MS Visual Studio. I mean WITHOUT any shortcuts? So I just type "" and it adds…
Alex from Jitbit
  • 53,710
  • 19
  • 160
  • 149
6
votes
2 answers

Textmate latex compilation : pb with python version after macOS update Monterey 12.3

I use textmate for make pdf file in latex. After the update of macOS Monterey version 12.3, the minimal version of python (/usr/bin/python) has disappeared : the compilation don't work now. I try to change in the textmate's files /usr/bin/python by…
6
votes
1 answer

Collapse All in TextMate

Is there a way to collapse all the functions in a given php file in TextMate? For example I have two methods: function index() { //Sample code } function beforeFilter() { //Sample Code } I would like to be able to issue a command where…
tnichols
  • 635
  • 1
  • 8
  • 19
6
votes
2 answers

shortcut to goto method definition in rails with textmate

With Netbeans or Eclipse I would Ctrl + click on the function name to go to the method definition. Are there any shortcuts for this in Textmate ?
Succeed Stha
  • 1,687
  • 2
  • 12
  • 13
6
votes
2 answers

Using RVM with different gemsets in TextMate

I have set up RVM and made individual gemsets for my projects as per the RVM best practices. Now running a test file in TextMate dosen't work and I have read here what to do. The problem is that it won't work because the guide expects me to have…
jriff
  • 1,947
  • 3
  • 23
  • 33
6
votes
2 answers

automatically open Rails generate migration file in editor

Is it possible to configure Rails so that after running rails g migration name_of_migration, it automatically opens that file in TextMate?
ma11hew28
  • 121,420
  • 116
  • 450
  • 651