TextMate 1 or 2, is there a way to auto-highlight all occurrences of
I was from Windows using EditPlus, when I double-click or Ctrl+W to select
a word, EditPlus is able to automatically highlight all occurrences in a
different background colour, very nice and useful feature.
With TextMate I have to additionally hit Opt+Cmd+F, and highlighting colour
is same as selected word, not eye-catching. I use 'soft' and light
background for selection background but I prefer bright background (eg
yellow) for highlighted words.
Ctr-S not really meets what I need.
Sent from my mobile. Ignore the typos unless they're funny.
I've used Whitesmith bracing style for *decades*, and had it kinda-sorta working in TM 1.5.x, though not perfectly. Now I've lost those old settings and for the life of me can't figure out how to get it even close in 2.0. There's clearly something fundamental that I'm missing, but I've spent hours on this off and on over the past few months, and I'm guessing that someone who really understands the rules (and regex) better than I, could get me on the right path in short order. I'd definitely appreciate it.
For those (unfortunate souls) who are not familiar with Whitesmith:
Also, just as a general suggestion, it seems like it would be really helpful to have just a handful of "packaged" example indentation rules for the small handful of common bracing styles, i.e. Allman, K&R, Whitesmith, maybe Gnu. Of course it wouldn't be perfect for everyone, but it could be really helpful as a starting point. If you know of such a set of examples, please point me to them (yes, I've looked). Thanks!
I tried to open a folder in TextMate today (one I open often) and it
crashed. (It was already running, as always.) Ever since, I’ve been
unable to get it to launch.
It detects the crash and asks about restoring open documents. It crashes
no matter what I choose there.
I haven’t changed any preferences or bundles or installed any updates
* `defaults delete com.macromates.TextMate.preview.LSSharedFileList`
* `defaults delete com.macromates.TextMate.preview`
* `mv ~/.tm_properties ~/foo`
* trashed `~/Library/Saved Application
* trashed `~/Library/Caches/com.macromates.TextMate.preview`
* restored `~/Library/Applicaiton Support/Avian` and `TextMate` from
a backup taken this morning
* downloaded the app again from the web site
* tried an older version (beta 7.3)
* rebooting, like a poor beleaguered Windows user
The only thing that *did* work was launching it as a different user, so
it’s something with my account, but what’s left?
I haven’t tried deleting all my bundles, but from the dates, I don’t
think any have changed since March.
From the crash log:
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_platform.dylib 0x00007fff94e40331
_platform_memmove$VARIANT$Ivybridge + 49
1 com.macromates.TextMate.OakTextView 0x000000010f92dfe1
oak::callbacks_t<ng::callback_t, false>::remove(ng::callback_t*) + 105
2 com.macromates.TextMate.OakTextView 0x000000010f8feeea
-[OakTextView setDocument:] + 437
3 com.macromates.TextMate.OakTextView 0x000000010f8f0584
-[OakDocumentView setDocument:] + 643
4 com.macromates.TextMate.OakTextView 0x000000010f8f01f4
-[OakDocumentView dealloc] + 457
5 libobjc.A.dylib 0x00007fff9676389c
objc_object::sidetable_release(bool) + 236
6 libobjc.A.dylib 0x00007fff96749e8f (anonymous
namespace)::AutoreleasePoolPage::pop(void*) + 575
7 com.apple.CoreFoundation 0x00007fff93a6b6f2
_CFAutoreleasePoolPop + 50
8 com.apple.Foundation 0x00007fff89f13762
-[NSAutoreleasePool drain] + 153
9 com.apple.Foundation 0x00007fff89f2d5cc
_NSAppleEventManagerGenericHandler + 121
10 com.apple.AE 0x00007fff8d45934c
aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned
char*) + 531
11 com.apple.AE 0x00007fff8d4590c9
dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 31
12 com.apple.AE 0x00007fff8d458fd3
aeProcessAppleEvent + 295
13 com.apple.HIToolbox 0x00007fff90935c6e
AEProcessAppleEvent + 56
14 com.apple.AppKit 0x00007fff8e357da2 _DPSNextEvent
15 com.apple.AppKit 0x00007fff8e356e58
-[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 346
16 com.apple.AppKit 0x00007fff8e34caf3
-[NSApplication run] + 594
17 com.apple.AppKit 0x00007fff8e2c9244
NSApplicationMain + 1832
18 com.macromates.TextMate.preview 0x000000010f533f19 main + 840
19 com.macromates.TextMate.preview 0x000000010f51e914 start + 52
I have a local mysql database that I try to connect to from Textmate 2.0.
When I define the connection setting in configuration dialog, and try to
submit to query, I get this error message:
undefined method `force_encoding' for #
I am on Mac OS X 10.11 and I installed the latest sql bundle from Github.
All that I have found are about Ruby and nothing specifically about SQL
bundle. Any suggestion on how to fix this problem?
I'm trying to develop a bundle for communicating with a TCP server, and
would like to create 1) a bundle command that opens the connection, and 2)
other commands that use that connection object (eg via grabbing text
selection in the editor window).
In Python, I've created a bundle command like this:
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
HOST = "127.0.0.1"
PORT = 7098
That sets up the socket correctly, in fact you can send messages to the TCP
However each time I send a command, the socket is obviously re-created; I
wondered if I TextMate provides a mechanism to save the 'sock' binding in
the current environment - so that I can reuse it later within other
Hope this makes sense - thanks in advance for any help.
I added support for fenced code blocks to the Markdown bundle as
Then I added “meta.embedded_ruby” to the as injection scope selector to
the Ruby grammar.
The result kind of works, but somehow the rule priority seems to get
mixed up (see screenshot).
Any ideas how to fix this?
when having a multiple selection (Multi singe charets) and giving the Filter
Through Command "seq 10", TM 2.0-beta.7.7 (nightly-build) completely hangs
(force quit is necessary!, nothing in console) on my Mac with OSX 10.10.5.
When downgrading to the "normal release" 2.0-beta.7.4, everything works as
expected => numbered item filled on the charet.
More people this issue?
View this message in context: http://textmate.1073791.n5.nabble.com/Multi-Carets-and-Filter-through-comma…
Sent from the textmate users mailing list archive at Nabble.com.
I haven't used Textmate for editing a programming language in such a long
time, that perhaps I am confused, but....
I wanted to edit a kml file generated by Google Earth. Kml should format as
I see this post
from 2007 saying that the open/close doesn't work if the end tag is not on a
separate line--unacknowledged and (seemingly) unfixed.
And as a variation on that bug report, I see that the following code also
doesn't open/close. If you fix all the indentations by hand, then it does,
but, surprisingly to me, tidying the code doesn't make any changes.
This is all in service to trying to edit a giant kml file from Google Earth.
On this file, folding is not working correctly, and tidying the code changes
the folding (still incorrect, but different).
I am beginning to think that I can't easily edit a kml file in TextMate,
because without folding, it is nearly impossible to figure out where blocks
start and end. (The file is well over 32,000 lines long).
Any thoughts before I give up?
I did download the kml bundle, but it doesn't help.
View this message in context: http://textmate.1073791.n5.nabble.com/xml-tidying-and-folding-tp29391.html
Sent from the textmate users mailing list archive at Nabble.com.