Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

PL/D "New D source file" wizard available

(1/1)

Austin Hastings:
Howdy,

I've been doing some work in PL/D recently, and so I created a New File wizard that creates new D source files.

This plugs in to the new-file menu, that pops up when you press Ctrl+N in a file.

It has graphics and everything. (Woo-hoo!)



Sadly, I couldn't find a way to do file templating in the context of the New file wizard - I know there's an xml based delivery mechanism for the new project wizard, but couldn't find anything that looked helpful in the docs for file wizards.

As a result, the d_source wizard has a hard-coded standard file template inside the script. I'd love it if someone could point me at a way to copy the contents of a template file in a script - that is, to copy and modify the contents of .../d_source/files/source_file_template.d into the script, so I can edit it and store it in the new editor window.

Anyway, the bundle is d_source at github if you want it.

Cheers,

=Austin

afb:
What is "PL/D" ? The language is called D, or "the D Programming Language".

But a "New File" wizard entry for it could be added if really needed, I suppose.

Austin Hastings:
Update:

I've made the wizard smarter about generating the header, and so now it tries to guess the module name
from the file path.

Also, I found a CB/wxString/Squirrel bug. :)

=Austin

Navigation

[0] Message Index

Go to full version