[TxMt] Re: how to opt in to double-click-to-select-pair?
graham.p.heath at gmail.com
Fri Aug 26 00:49:26 UTC 2016
It looks like highlightPairs is what this functionality ties into, but I
couldn’t make it work with any pairs that were the same; so ["+","+"]
didn’t work but ["+","-"] did.
Though my C foo is not good;
It looks like the opener character matching the closing character prevents
the range from being generated because it matches the opening character.
If the query is "+ foo +" the search starts and stops on the first +.
If what I’m reading is correct, this might be as simple as starting "from +
1" when looking up the next result.
But I’m probably wrong, lol.
On August 25, 2016 at 4:44:32 PM, Matt Neuburg (matt at tidbits.com) wrote:
We can double-click a left parenthesis to select everything from there to
the corresponding right parenthesis, and vice versa, so this raises the
question: how does my bundle opt in to this? For example, in my "language"
(AsciiDoc), a plus sign might be a delimiter. Is there a way to set things
up so that double-clicking a plus sign selects to the other plus sign?
I tried smartTypingPairs and highlightPairs, but neither of those was it...
Thx (and sorry if this has already been explained and I missed it) - m.
matt neuburg, phd = http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 9! http://shop.oreilly.com/product/0636920044352.do
iOS 9 Fundamentals! http://shop.oreilly.com/product/0636920044345.do
textmate mailing list
textmate at lists.macromates.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the textmate