[TxMt] Multiple simultaneous arbitrary caret locations (with optional highlighting)

thomas Aylott thomas.42 at gmail.com
Mon Apr 24 16:53:29 UTC 2006

On Apr 22, 2006, at 6:43 PM, Duane Johnson wrote:

> So I bounced this idea off of Soryu and it seems this hasn't been  
> discussed much.  What if you could add multiple carets to the  
> current document by command-clicking?  I imaging this to work in a  
> way almost identical to that of the current snippet mechanism.  For  
> example: choose three caret locations, start typing, and in each  
> location your text will show up.  Press tab and the caret will  
> focus in on the second of the two locations, highlighting the newly  
> typed text (if any).  Tab again and it moves to the third.
> It would also be ideal to be able to highlight multiple selections  
> in the same way--kind of like a powerful replace mechanism.   
> Command-click and select three words in the document, then type one  
> new word, and incrementally, all three words change to the new one.
> Has this been discussed before?  It seems plausible given the  
> powerful way we can already "insert as snippet" to the document.

That's good thinking.

I really like that idea.
It would be like instantly converting the document to a snippet
adding snippet placeholders to the locations you just cmd-clicked  
(either at those cursor locations or around each of those selections)

Each one would be placeholder $1 surrounded by incremental placeholders,
so at first all type as one but then you can tab to each.

That would be stinking awesome.

thomas Aylott—subtleGradient—oblivious at subtleGradient.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20060424/3b503377/attachment.html>

More information about the textmate mailing list