Skip to main content
Share Your Experience: Take the 2024 Developer Survey
6 votes
Accepted

Invert regular expression match in TextMate

Not sure it will work with TextMate (I do not have it, but I've tested with Notepad++). You could try: \b(?:(?!goose)\w)+\b Explanation: \b : word boundary (?: : start non capture ...
Toto's user avatar
  • 18k
4 votes
Accepted

Connecting to ubuntu runnning rmate via multiple machines on the same network

If you install and run rmate text locally, text will show in TextMate. This is because TextMate listens on localhost:52698 and rmate talks to localhost:52698 by default. If you set TextMate>...
guest's user avatar
  • 3,409
4 votes

How do you access clipboard history in MacOS

My old answer to this was wrong. MacOS doesn't maintain clipboard history from what I can tell. For me, TextMate had been running for some time and while it was running it was gathering everything ...
albe's user avatar
  • 191
4 votes

How to open file using TextMate with new tab

Also a bit of a work around. After opening several windows with text mate you can go to the menu bar Window > Merge All Windows I also have a keyboard shortcut set up to quickly access the menu bar. ...
kiramdany's user avatar
2 votes

How to show indentation guides in TextMate

In TextMate 2, select: View > Show Indent Guides View > Hide Indent Guides Which was added via this commit: https://github.com/textmate/textmate/commit/263da53c8166273859c91c1a88ef2157d1d05ca8
pkamb's user avatar
  • 4,415
2 votes

How to format code in Textmate

Today I found the "Tidy" option under Bundles > HTML and it worked great. (Ctrl-Shift-H). I can't speak to how well it works for other languages, though.
laurenll's user avatar
  • 121
2 votes

How to replace "35yrs" with "35 yrs" using regular expressions?

AFAIK, Textmate supports advanced regular expression. Then you can use the following: Find: (?<=\d)(?=yrs) Replace: <-- a space Explanation: (?<=\d) # positive lookbehind, make sure ...
Toto's user avatar
  • 18k
1 vote
Accepted

How to force-close (discard) all open documents in Preview and/or TextMate?

Folders to empty out before launching the app. For Preview: ~/Library/Containers/com.apple.Preview/Data/Library/Autosave Information For TextMate: ~/Library/Library/Application Support/TextMate/...
Ben Zotto's user avatar
  • 153
1 vote

How to replace "35yrs" with "35 yrs" using regular expressions?

You just need to use capture groups. Here's the regular expression to use: (\d+)(yrs) and in the replace field put this \1 \2 \1 represents the first group in () and \2 represents the second ()
NFR's user avatar
  • 398
1 vote

Invert regular expression match in TextMate

I find mistake in this expression, you can check it here: https://regex101.com/r/XQhqAB/1 As you see, the previous expression \b(?:(?!goose)\w)+\b doesn't find: gooses1, goose1 and all the words that ...
Oleg Konev's user avatar
1 vote
Accepted

Where does TextMate2 store the icons it uses to represent specific file-types?

Navigate to TextMate.app/Contents/Resources to find all icon files. You can find the icons used on the following GitHub repository. Some other icons also come from their respective installation ...
forgetaboutme's user avatar
1 vote

Why TextMate doesn't replace tabs with spaces?

This is an old post, but, just in case somebody stumbles into it. Textmate allows you switch from tabs into spaces. You can set the at the bottom left-ish of the window where it says, "tab siz: ...
ltdn's user avatar
  • 11
1 vote

Markdown Live Preview Editor?

Visual Studio Code (vscode) supports it out of the box https://code.visualstudio.com/docs/languages/markdown
Ciro Santilli OurBigBook.com's user avatar
1 vote

Markdown Live Preview Editor?

An old, but still relevant, question. All the answers appear to be 8-10 years old, but I believe that Typora is the answer as of today. AFAIK, there's nothing quite like it: As you type your markdown ...
Seamus's user avatar
  • 173
1 vote

Run a script on save in textmate

you can trigger a command after save via callback.document.did-save semantic class. This works on TextMate2+
vigo's user avatar
  • 291

Only top scored, non community-wiki answers of a minimum length are eligible