[TxMt] Multiple simultaneous arbitrary caret locations (with optional highlighting)
Duane Johnson
duane.johnson at gmail.com
Tue Apr 25 18:42:07 UTC 2006
On Apr 25, 2006, at 9:51 AM, Duane Johnson wrote:
>
> On Apr 25, 2006, at 9:32 AM, Charilaos Skiadas wrote:
>>> Maybe we'll just come up with some random command to make it work
>>> by replacing the document with a snippet.
>>
>> Probably once we get mouse gestures, then the snippet idea might
>> actually work (at least for the first command click), reasonably
>> well.
>> Of course, we could, even now, have a key that inserts a "special
>> character", and once you've inserted all the special characters at
>> each location you want, then have a command that reads the entire
>> document and inserts it as a snippet, replacing those special
>> characters with $1 or something. We could build this as is now,
>> and make it require less keystrokes once mouse gestures are around.
>>
>> Not sure what the scaling performance of inserting the entire
>> document as a snippet is, but it's worth a try.
>
> Beautiful--that's an excellent idea. In fact, this would cover
> almost all of my use cases, since one could highlight and replace
> any word with this "special character".
I've implemented the idea here: http://blog.inquirylabs.com/
2006/04/25/textmate-snippets-like-youve-never-seen-them-before/
Will post the bundle there soon.
Duane
More information about the textmate
mailing list