[TxMt] Re: Strange multi-caret behavior in Ruby block

Matt Neuburg matt at tidbits.com
Thu Feb 20 02:11:02 UTC 2014


On Feb 19, 2014, at 11:57 AM, Jacob Carlborg <doob at me.com> wrote:

> 1. Type "foo" and press Shift + Enter
> 2. Press backspace to remove the argument
> 3. Type something
> 
> You'll now have multiple carets.

Ooooh, that's a really great use case. Try this extension:

1 Type "foo" SHIFT-RETURN
2 Press Backspace (Delete)
3 Type "tttt"

Because of the mutiple carets, you have just created a nested mess of parentheses:

def foo(((t(ttt)))t)) 

end

m.

--
matt neuburg, phd = matt at tidbits.com, http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 7! http://shop.oreilly.com/product/0636920031017.do
iOS 7 Fundamentals! http://shop.oreilly.com/product/0636920032465.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
TidBITS, Mac news and reviews since 1990, http://www.tidbits.com



More information about the textmate mailing list