Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: Create and edit new scripts

by zentara (Archbishop)
on Apr 25, 2006 at 11:49 UTC ( #545548=note: print w/replies, xml ) Need Help??

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.


Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://545548]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2023-01-31 04:38 GMT
Find Nodes?
    Voting Booth?

    No recent polls found