Sean, regarding snippets, here's a very simple illustration

--start--
<cfquery datasource="#request.dsn#" name="
--
--end--
"></cfquery>
--

Map that to CTRL-Q (because you sure as hell don't want the ability to
accidentally close the whole editor with a keystroke) and with two simple
keystrokes you have a CFQUERY tag all set up, ready to enter a name.  Then
map this to CTRL-SHIFT-Q for a QofQ:

--start--
<cfquery dbtype="query" name="
--
--end--
"></cfquery>
--


Add a few more simple ones in there (these are my popular ones)
<cfinclude template="|.cfm" /> CTRL-T
<cfset xfa.| = fusebox.targetcircuit & "." /> CTRL-E
<cfdump var="#|#" /> CTRL-D
<cf_dump variable="#|#" /> CTRL-SHIFT-D
<!--- | ---> CTRL-M
<cfparam name="|" default="" /> CTRL-P (does any one print code?)

You can't even begin to argue that you can do all those things faster with
tag insight and good typing.  And the list goes on.  I had probably seven or
eight snippets that I use all day, another five or so that I use enough to
have mapped to keys, and then a bunch more that I use via the snippets
window (HTML skeleton, fusedoc skeleton, etc.).

The closest I've found to snippets in DW (asside from the actual snippets
panel) is to manually add crap to the insert bar and assign shortcuts to it,
but that's just gnarly to do, since you have to edit an XML file, create an
icon (or at least copy one), make a HTM file that uses a bunch of unfamiliar
js objects, and then restart DW.  And it's made worse by having some
shortcuts that you can't override (like CTRL-Q), even though the keyboard
shortcut editor lets you remap them.  I can't even tell you the number of
times I've slipped hitting CTRL-W and hit CTRL-Q by mistake.  Boy does that
make for some colorful language coming from my mostly clean mouth.  I've
started leaving an changed but unsaved document open in the back (for the
'do you want to save' prompt that I can cancel).

Wow, that turned into way more of a rant than I intended.  No personal
attacks intended, preemptive apologies for any offense caused, and all you
MM guys, I don't hate you or your products, quite the contrary, just still
annoyed that CFS died in favor of a designer's tool with a few code-centric
things tacked on for the ride.  Yes, I know HS+ exists, but is it going to
be around for the next iteration of tools, or just DW?

barneyb

---
Barney Boisvert, Senior Development Engineer
AudienceCentral
[EMAIL PROTECTED]
voice : 360.756.8080 x12
fax   : 360.647.5351

www.audiencecentral.com


> -----Original Message-----
> From: Sean A Corfield [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 26, 2003 12:58 PM
> To: CF-Talk
> Subject: Re: Homesite + question
>
>
> On Thursday, Jun 26, 2003, at 09:53 US/Pacific, Calvin Ward wrote:
> > I guess I was mostly curious about some of the gaps between CF Studio
> > and
> > MX, such as Snippet Shortcuts, divided file/folder browsing, filepath
> > in the
> > title bar and so forth.
>
> I've used a few editors which have the divided view and not found it as
> useful as I might have hoped. Perhaps it's something to do with the
> style of my code (usually very localized, structured and modularized so
> I rarely need to see two parts of the same file at the same time).
>
> A lot of CFS users talk about the snippet shortcuts and they do sound
> quite useful but, again, most of the things that folks say they use
> them for are just not scenarios that I find myself needing - or not
> needing often enough to want a quicker way of doing things. And I'm a
> fast typist, which helps ;)
>
> The file path issue is an interesting one and I do sometimes have a
> bunch of files open and then wonder which is which because the part of
> the file path DW shows is not unique.
>
> > Even so much as that I'm currently working on an app to leverage Design
> > Notes (.mno) and .bak/.lck files to do some neat things for poor man's
> > source control with CFMX...
>
> Yes, the .LCK file system is useful - our build system creates .LCK
> files when running builds to areas where folks use DW. This ensures
> that files created automatically by the build system show up as checked
> out to the build system itself - a very visual reminder that those
> files should only be modified through the version control system.
>
> Sean A Corfield -- http://www.corfield.org/blog/
>
> "If you're not annoying somebody, you're not really alive."
> -- Margaret Atwood
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to