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
0
votes
1 answer

How to use the "Project Drawer" in TextMate 2 when it doesn't seem to exist?

On TextMate 2 and opening two files in two different locations such as /path/1/file.txt and /path/2/file.txt, I am no longer seeing a way to perform diffs as before since one cannot select files in the project "drawer." We now have a file browser…
ylluminate
  • 12,102
  • 17
  • 78
  • 152
0
votes
1 answer

Shell script to grab selected text and alter it?

How can I make a shell script that will know where the caret is and grab selected text, so I can wrap the text in something? For example, this is a script from a Textmate bundle: <${1:p}>$TM_SELECTED_TEXT It grabs the text and wraps…
thatryan
  • 1,551
  • 6
  • 21
  • 39
0
votes
1 answer

Auto completion of Pandoc style citations in markdown using TextMate

In TextMate, auto completion of code is achieved by pressing the escape key (on Mac at least). I'm hoping I can also auto complete citations. I'm writing my text in a markdown document, and using Pandoc to convert the markdown document to a PDF. To…
luciano
  • 13,158
  • 36
  • 90
  • 130
0
votes
1 answer

Can textmate arrange my code into readable columns?

I like to indent repetitive lines of code so they are easy to look at and see small differences. As an example, this is hard to read: address = "1800 Washington St." name = "George McGoo" user_type = "admin" but this is easy to read: address =…
muirbot
  • 2,061
  • 1
  • 20
  • 29
0
votes
1 answer

TextMate Snippet to Mirror Only Matched Characters

I have been trying unsuccessfully to mirror text that only matches "a-z0-9" using the following code: ${1/[a-z]/$0/}${1} After the snippet has been tab triggered I would expect to type "$test" and see "test" mirrored. Any clues? Many thanks!
Chris Kempson
  • 319
  • 1
  • 3
  • 13
0
votes
2 answers

can anyone explain this javascript textmate snippet to me please

the following code is a textmate javascript snippet, can anyone explain it please? cuz i want to use this feature in my own snippets. greate thanks. document.getElement${1/(T)|.*/(?1:s)/}By${1:T}${1/(T)|(I)|.*/(?1:agName)(?2:d)/}("$2")
Just a learner
  • 26,690
  • 50
  • 155
  • 234
0
votes
4 answers

Python + SVN + Windows/Mac = Invalid syntax?

I'm pretty sure the following error is related to the fact that I'm sharing code via SVN with a colleague that is using a Windows system. Myself, I use Python on Mac, editing with TextMate. #!/usr/bin/python import os from google.appengine.api…
poezn
  • 4,009
  • 4
  • 25
  • 27
0
votes
1 answer

Textmate 2 - Ruby not showing up as a option

Here you can see my ruby bundle is defiantly installed And when editing text I am unable to select ruby from the list (because it doesn't exist), Is this a error with my setup or a bug in text mate? I have re-downloaded text mate and removed the…
Oliver Atkinson
  • 7,970
  • 32
  • 43
0
votes
3 answers

Cleanly translate (x to y) and (y to x) using a find/replace/regex in TextMate

I want to change this: _(with(new FuListNode )->isList())->shouldBe(true); _(with(new FuListNodes)->isList())->shouldBe(false); _(with(new FuTreeNode )->isList())->shouldBe(true); _(with(new FuTreeNodes)->isList())->shouldBe(false); } } to this…
Ollie Saunders
  • 7,787
  • 3
  • 29
  • 37
0
votes
4 answers

Replace www.example.com w/ www.example.com

I am not very good at regex, but I need to convert the following example from this
  • Creations by Carol - www.driedfloralcreations.com
  • to
  • Creations by Carol -
    Brad
    • 12,054
    • 44
    • 118
    • 187
  • 0
    votes
    1 answer

    highlight or find all words which start with a capital letter

    How to highlight or find all words which start with a capital letter in textmate? I have lots of text (around 70 pages) which contains many words which unnecessarily start with a capital letter. I want to inspect all these words and change them to…
    user494461
    0
    votes
    1 answer

    Search repeated Chinese chracters in a plain text with regex?

    First i know match chinese unicode should use [\x{4e00}-\x{9fa5}] Then i use group and backreference ([\x{4e00}-\x{9fa5}])\1 But the result is adjacency, like "中中". I need all the character which appear more than one time anywhere in the…
    Maadiah
    • 431
    • 6
    • 20
    0
    votes
    1 answer

    In a TextMate snippet, how can I pull in the current class and/or method name?

    Just like I can pull in the currently selected text into a snippet using the $TM_SELECTED_TEXT, is there any way I can retrieve text from my code like the method name or class name containing the current caret position? This'd be super useful for…
    Scott Thiessen
    • 873
    • 7
    • 20
    0
    votes
    2 answers

    How can I do this with a regex pattern?

    I am writing a custom TextMate / Sublime Text 2 bundle for 6502 Assembly language. Anyway, I want to be able to identify constants, variables, etc. I have this for HEX numbers: match #?\#[0-9a-fA-F]+
    cbmeeks
    • 11,248
    • 22
    • 85
    • 136
    0
    votes
    1 answer

    Why are CSS media queries marked as invalid in Text Mate 1?

    in my version of TextMate 1 (the latest one) all media queries are marked as invalid which bothers me a lot: @media screen and (max-width: 320px) { ... } How can this be fixed? Thanks for any help.
    Tintin81
    • 9,821
    • 20
    • 85
    • 178