in reply to Create and edit new scripts

Just for the sake of discussion, I do this with mc(Midnight Commander) by editing it's file to make templates. I have a bash alias 't' which creates an empty file, like "t myscript", then I hit F4 on myscript to open it in mc's internal editor, at which time if I hit F11, I get a menu of keys "g thru t" to let me select a template to insert. 'p' is just your simple template, but 'g' gives me a Gtk2 template with a full Mainloop and a few empty boxes to fill in, and a pre-made exit button". While 't' gives me a basic Tk window.

I'm not really a human, but I play one on earth. flash japh

Replies are listed 'Best First'.
Re^2: Create and edit new scripts
by johngg (Canon) on Apr 25, 2006 at 15:32 UTC
    I can see how a collection of template files such as you describe would save an awful lot of typing or, more likely, a lot of cut & paste errors. I imagine it would be possible to set up something similar with nedit macros and I will test this out.

    Thank you for your ideas.