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
30
votes
4 answers

Error running osascript -e 'tell app "TextMate" to reload bundles'

I'm trying to install Cucumber bundle for TextMate2. I followed the following instructions from the official page https://github.com/cucumber/cucumber-tmbundle: mkdir -p ~/Library/Application\ Support/TextMate/Bundles/ cd ~/Library/Application\…
carpamon
  • 6,515
  • 3
  • 38
  • 51
30
votes
1 answer

Bracket Highlighting in Textmate (javascript)

I have some gnarly functions in javascript that I am using Textmate to edit. I see an extremely short flash of the matching bracket, but it is almost imperceptible if you don't arrow over the bracket repeatedly. Is there a way to make the bracket…
Joel Hooks
  • 6,465
  • 4
  • 33
  • 39
29
votes
9 answers

Wrapping selecting text in enclosing characters in Emacs

In Textmate I can wrap enclosing characters ('(', '[', '"', etc.) around text by selecting it and hitting the opening character. For example, if I select word and hit (, it will become (word). What does Emacs call this feature and how do I enable…
hekevintran
  • 22,822
  • 32
  • 111
  • 180
29
votes
5 answers

Using Python 3.1 with TextMate

TextMate seems to use the built-in Python version I assume (sys.path doesn't work). How do you configure it to use 3.1 instead? I've already installed the 3.1 package and I can use IDLE for interactive sessions, but I need to use TextMate…
eozzy
  • 66,048
  • 104
  • 272
  • 428
27
votes
6 answers

Textmate git commands fail with 'sh: line 1: git: command not found'

When trying to use some of the commands from the Git bundle for TextMate (eg. 'Show Uncommited Changes') I get an error message like 'sh: line 1: git: command not found'. How do I make TextMate work with Git?
Will Harris
  • 21,597
  • 12
  • 64
  • 64
26
votes
3 answers

Show 80-character margin line in TextMate

Is it possible to display a right-margin line at 80 characters in TextMate? (i.e. the right-margin line in eclipse, gedit, etc.) If so, how can I configure that?
Justin
  • 1,419
  • 12
  • 14
25
votes
8 answers

How do you default to Soft Tabs while programming in Textmate?

My "Soft Tabs" setting in TextMate is not sticky. After I restart TextMate, I often have to set the option again for the same file. How can I make this setting the sticky default across all files?
Kelvin
  • 965
  • 2
  • 10
  • 13
25
votes
6 answers

Creating an empty txt file on Mac OS without opening an application first

Is there a way to simply create a new document e.g. on the Desktop and open it with e.g. textmate with a simple shortcut or script. I know that the MS Windows approach where you can just create a new empty txt file directly is not working for Mac.…
Bernd
  • 11,133
  • 11
  • 65
  • 98
24
votes
10 answers

Thinking of moving from TextMate to vim for Rails dev. What do I need?

I do Ruby on Rails development pretty much exclusively. I currently develop in OS X using TextMate. I have a virtual machine running to emulate as closely as possible the environment my app will be deployed into, and I mount the code on a Samba…
Josh Lindsey
  • 8,455
  • 3
  • 24
  • 25
24
votes
8 answers

What's so great about TextMate?

Almost every developer that uses a Mac practically worships TextMate. Why? What extraordinary features does it have that other text editors and IDEs don't? I did a quick search and the only really useful feature that I found that most other editors…
Sasha Chedygov
  • 127,549
  • 26
  • 102
  • 115
22
votes
3 answers

Automatically reveal current file in TextMate project drawer

There is a key chord to highlight the current document in the project drawer but I want it to happen automatically. Is there any way to make TextMate reveal files automatically by expanding the parent hierarchy whenever I switch documents? If…
Turadg
  • 7,471
  • 2
  • 48
  • 49
21
votes
5 answers

"Sort Lines in Selection" for Xcode 4

I like Textmate's "Sort Lines in Selection" feature a lot. Is there something similar for Xcode 4? If not, what would be the best way to integrate such a feature (a plugin, Applescript, ...)?
Lars Schneider
  • 5,530
  • 4
  • 33
  • 58
21
votes
17 answers

What are some useful TextMate features?

I noticed that many people here use TextMate for coding on OS X. I've recently started using it, and although I like its minimalistic interface, it makes it harder to stumble upon cool features if you don't know what you're looking for. So, what…
dF.
  • 74,139
  • 30
  • 130
  • 136
21
votes
2 answers

Does TextMate have an easy way to indent 2 spaces for a HAML file?

I look around for the preferences in TextMate and there seems to be no method to set the indent to 2 spaces when we highlight some code and choose Text -> Shift Right Right now it is indenting 4 spaces but is there a way to make it 2?
nonopolarity
  • 146,324
  • 131
  • 460
  • 740
21
votes
4 answers

Is it possible to implement Python code-completion in TextMate?

PySmell seems like a good starting point. I think it should be possible, PySmell's idehelper.py does a majority of the complex stuff, it should just be a case of giving it the current line, offering up the completions (the bit I am not sure about)…
dbr
  • 165,801
  • 69
  • 278
  • 343
1
2
3
74 75