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

How to delete \n in Textmate

Given a file which contains new lines, using Textmate, how can i remove them from the document Given a text file a b c I'd like to end up with a b c
James Raitsev
  • 92,517
  • 154
  • 335
  • 470
9
votes
2 answers

Select additional occurrences of a word in TextMate 2

How can I select additional occurrences of a word in TextMate 2? I do this in Sublime Text 2/3 by pressing Ctrl+D (Windows, Linux) or Cmd+D (macOS).
azio
  • 575
  • 1
  • 6
  • 12
9
votes
5 answers

Textmate2 save on lost focus

In TextMate v1, there was an option to save on lost focus. That is, when you'd switch to another application, your TextMate documents would save. How can I recreate this behavior in TextMate 2?
Rose Perrone
  • 61,572
  • 58
  • 208
  • 243
8
votes
3 answers

Is there a way to dynamically examine html output with vim?

When I write html in MacVim I keep the same file open in a web browser so that I can examine the html output. One of the things I dislike about this method is that I constantly have to leave vim, go to the browser, and reload the html to see the…
drbunsen
  • 10,139
  • 21
  • 66
  • 94
8
votes
1 answer

How to set custom background for linum mode?

I'm trying to get the same left margin as textmate mac-classic theme, i've setup my custom face for fringe, but got some problems with left margin in linum-mode. If i try M-x customize-face linum background it sets my color only for linum-numbers,…
Kirill2011
  • 83
  • 1
  • 3
8
votes
1 answer

How to convert a TextMate Grammar (XML flavor) to either YAML or JSON flavor

Textmate grammar (.tmLanguage files) are sometimes expressed in XML format. I would like to convert to a more readable format (i.e. JSON or YAML) to integrate in a VS Code Syntax Highlighting Extension. To clarify what I mean, here are a few…
Jean-Francois T.
  • 11,549
  • 7
  • 68
  • 107
8
votes
2 answers

Textmate Whitespace/Invisibles - Show Spaces

Is there a way to show "Soft Tabs" (spaces) in TextMate? View → Show Invisibles works well for keeping track of indentation if you're using tabs for indentation. Unfortunately in languages where indentation is semantic you generally have to use…
dleavitt
  • 1,386
  • 13
  • 14
8
votes
4 answers

TextMate Haskell Bundle

I wonder that there is no Haskell TextMate Bundle. Macromates.com says that there was a bundle but it seems that it doesn't exists anymore. Are there any other ways to get Haskell Syntax Highlighting on TextMate?
masi
  • 83
  • 1
  • 3
8
votes
4 answers

TextMate toggle comment macro is broken

My laptop crashed and when it rebooted, "cmd /" (toggle comment) was broken. When I try to toggle comments on a line that only contains "foo", I get this output in my code instead of "# foo": /tmp/temp_textmate.2erfLj:68:in /bin/bash: -c: line…
nannerpus
  • 1,425
  • 1
  • 12
  • 11
8
votes
4 answers

How to quickly find file in the workspace/switch between buffers/etc. in Eclipse?

I am looking for something like Textmate's fuzzy search on Command-T, FuzzyFinder in Vim, or Ido in Emacs. Does it exist? If no, how do you prefer to do it?
Alexey Romanov
  • 167,066
  • 35
  • 309
  • 487
8
votes
1 answer

Formatting ERB Templates automatically in textmate

When writing ERB templates in Ruby on Rails using Textmate formatting by hand pretty much sucks. Do anyone know of a textmate bundle that handles formatting of ERB templates/views? My googling has found nothing. Thanks!
Scott Schulthess
  • 2,853
  • 2
  • 27
  • 35
8
votes
2 answers

How to program in C# with TextMate as my IDE?

Yes, I know there is MonoDevelop. But what if I want to use Textmate instead? So my question here is aimed at the .Net developer who has developed some C# applications using Textmate. I'm curious as to what their process/workflow is with this…
program247365
  • 3,951
  • 7
  • 33
  • 44
8
votes
1 answer

How to adjust line spacing in Textmate 2?

How to adjust the height of line spacing in Textmate 2? i.e. preferably like Textmate 1 (on the right).
ohho
  • 50,879
  • 75
  • 256
  • 383
8
votes
1 answer

Textmate, exclude file (types?) from project search

In TextMate, when I apple-shift-F to search my project, I have to wait through a spinning beach ball for it to tell me I don't have enough memory to load development.log . How can I exclude (development).log from my project wide search? Thanks
Walrus the Cat
  • 2,314
  • 5
  • 35
  • 64
7
votes
2 answers

Text editor keyboard shortcut that will refresh iOS Simulator's Safari browser?

In text editors like TextMate, pressing COMMAND + R will save the html document, switch to a browser like Chrome, and refresh the page. So the question is, how does one use this keyboard shortcut to refresh the Safari browser within the iOS…
s2t2
  • 2,462
  • 5
  • 37
  • 47