[TxMt] Easy Generating of Scratch Snippets with the new TMTOOLS plug-in
Brian Huddleston
binarynomad at gmail.com
Wed Oct 24 18:02:22 UTC 2007
Wow, that was beautiful, and it is exactly what I've been looking for
lately. I do a lot of text work and snippets have been a godsend for
standardizing on data, so I end up manually creating a bunch of
temporary snippets. Recently I had posted a request, asking about
this particular functionality and thankfully many people responded
telling me about the "Scratch Snippet" in the Textmate bundle, which
has helped immensely, but it was still limiting when you've only got
one register and an odd key combo to initiate it.
PS: many thanks to everyone who chimed in earlier letting me know
that the Textmate bundle had that one scratch snippet. I really
appreciated it. I was in digest mode and so it was hard to respond
to the thread. (no longer a problem though :) ).
----
Brian H
binarynomad at gmail.com
http://www.binarynomad.com
On Oct 24, 2007, at 5:32 AM, Hans-Joerg Bibiko wrote:
> Hi,
>
> I just uploaded the new version 0.903
>
> Download:
> http://email.eva.mpg.de/~bibiko/downloads/textmate/
> TMTools.tmplugin.zip
> Help:
> http://email.eva.mpg.de/~bibiko/downloads/textmate/tmtoolshelp.html
>
> "$TMTOOLS" help me
>
> Changes:
> added: get contentOfWindow
> added: get/set smartTyping
> added: get allBundles
> added: get uuidFor
> added: get defaultBundle
> added: get allBundleItems
> added: do checkUUID
> added: get bundlePathsForUUID
>
> Regarding to the issue of generating dynamic commands (esp.
> snippets) I attached an example bundle "SCRATCH SNIPPETS" which
> contains one command: "Create New Scratch Snippet".
> This command takes a selection which contains the snippet (last
> line := tab trigger = name of the new snippet) and installs a new
> snippet into the "SCRATCH SNIPPETS" bundle (scope is set to the
> current one automatically, but this can be changed easily). After
> doing that the new snippet is ready for usage.
>
> Of course, one can also create commands, macros, etc. dynamically ;)
> [This bundle requires TMTOOLS release 0903!]
>
> A demo movie is here: http://www.bibiko.de/TMscratchSnippet.mov
> (1.2MB)
>
> Have fun,
>
> Hans
>
> <SCRATCH SNIPPETS.tmbundle>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
More information about the textmate
mailing list