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
1
vote
1 answer

How can I keep deleted files from showing up in TextMate 2 file-browser sidebar?

In Textmate 2, when you rename a file, the new filename shows up in the file-browser sidebar, but the old filename does, too, with a red X. The old filename won't go away until you commit your name change. This has been infuriating me for years. I…
armchairdj
  • 1,030
  • 11
  • 13
1
vote
1 answer

Way to always show window tabs in Textmate 2?

I had this working on an older machine but had to switch computers and lost some preferences along the way. I'm hoping someone here remembers how to do this because I've searched and can't find anything. Does anyone know the hidden setting for…
Jamie Poitra
  • 431
  • 4
  • 15
1
vote
1 answer

Textmate Javascript Validate Syntax Command

I spend a lot of time in TextMate 2 writing PHP and a lesser amount writing Javascript. I've always found the Validate Syntax command in Textmate very useful as a final quick sanity check before saving. I was wondering today if there were a way to…
Jamie Poitra
  • 431
  • 4
  • 15
1
vote
1 answer

In TextMate (or Sublime) how can I get the path relative my project directory?

I've got the absolute path available in commands via $TM_FILEPATH. How can I write a command that gives me a relative path, specifically i'd like to copy this path to enable sharing and ease some git/bash operations?
Graham P Heath
  • 7,009
  • 3
  • 31
  • 45
1
vote
0 answers

python 3 'input()' with textmate 2 'run'?

I have python 3.5.2 installed with homebrew (El Capitan). I have TextMate 2. I have a .tm_properties file in my project folder which successfully gets textmate 2 to run python 3.5.2 (I would like to learn python, and would prefer to use textmate,…
Daniela
  • 234
  • 2
  • 13
1
vote
1 answer

How to add dictionary words for auto-completion in TextMate 2?

TextMate's Esc auto-complete is great, but it's limited by default to words only in the current document when using the Plain Text grammar. Is it possible to add standard dictionary words to this? E.g., auto-complete to "dictionary" when I press Esc…
SilverSideDown
  • 1,162
  • 11
  • 14
1
vote
1 answer

How to lowercase first letter of Textmate snippet input?

I have shortcut for creating getter method and here is my snippet code right now: public function get${1:PropertyName}() { return \$this->${1:propertyName}; } $0 Output I'm looking for: public function getAreaCode() { return…
lehtu
  • 868
  • 1
  • 12
  • 27
1
vote
1 answer

How to fix broken Ruby commenting in TextMate?

Whenever I open a Ruby file in TextMate 2, although it is correctly recognized, the syntax coloring and the commenting are both screwed up. Instead of command/ putting a # at the beginning of all selected lines, I get them wrapped in /* and */, as…
iconoclast
  • 21,213
  • 15
  • 102
  • 138
1
vote
1 answer

How to jump to a matching brace in Textmate 2?

Is there a workaround for the problem with textmate's Jump to matching brace issue? Is there anyway to disable the OS level ⌃↑ and ⌃↓ ? Or to customize textmates key bindings? Somehow relevant, but not satisfactory answers: "Go to matching brace"…
gotjosh
  • 831
  • 3
  • 9
  • 18
1
vote
1 answer

Use alternate syntax highlighting in middle of TextMate2 comment

By the very nature of a comment, this might not make sense. On the other hand, what I'm trying to achieve is not too different from an escape character. As a simple example, I want # comment :break: comment to show up more like like #comment…
rbatt
  • 4,677
  • 4
  • 23
  • 41
1
vote
1 answer

how to group snippets in textmate

I have got a nice bunch of shell scripting snippets that I'd like to categorise (file manipulation tools, networking scripts etc.) I can only add scripts but not group them together (so I can hover over a group called for eg Networking and a submenu…
Sebastian Zeki
  • 6,690
  • 11
  • 60
  • 125
1
vote
1 answer

Textmate 2 - Delete a Macro

I was not able to find a way to delete a custom macro that I just created using the latest Textmate version. Surely this should be fairly simple task? The only option in the Edit Bundle section is the enable/disable the macro.
arimbun
  • 3,885
  • 2
  • 19
  • 16
1
vote
2 answers

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) with the application Transmit 2. (This will upload…
jacobianism
  • 226
  • 1
  • 3
  • 12
1
vote
1 answer

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 displayed. In most Rails tutorial, it is so conventional…
Steve.NayLinAung
  • 5,086
  • 2
  • 25
  • 49
1
vote
2 answers

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 "Project folder" now is not the one I do mate . in,…
Joshua Muheim
  • 12,617
  • 9
  • 76
  • 152