From justin.french@indent.com.au Thu Oct 7 14:15:04 2004 From: Justin French To: textmate@lists.macromates.com Subject: Re: [TextMate] Snippets, and Selected Text Date: Fri, 08 Oct 2004 00:14:45 +1000 Message-ID: <3D2ED3B4-186B-11D9-8481-000A9579CE3A@indent.com.au> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1807635573759586932==" --===============1807635573759586932== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On 07/10/2004, at 5:44 PM, timothy martens wrote: > > On Oct 6, 2004, at 8:52 AM, Noel D.Jackson wrote: > >> I've already submitted this to "the boys", however I figured i'd >> bring it up here. >> >> For a snippet, there should be a variable say "$s" that references >> the text selected when the snippet was acted on, so that say, if I >> select noel(a)noeljackson.com and click on my href snippet, it will >> replace $s with noel(a)noeljackson.com, allowing easy creation of >> headers etc in HTML without going back, or creating macros. > > Agreed, a selected text variable is a must. I hope we can get this > high on the version 1.2 list please In the meantime, I use Macros for this... in fact, check out "Selection as Anchor" in the Macro's list (Ctl-Shift-L as well). It will turn the current word or selected text into an noel(a)noeljackson.com about => about Incidently, I think I'll change the name of "Selection as Anchor" to "Make HTML Link" in 1.01, since everyone seems to overlook it. Justin --===============1807635573759586932==--