Author Topic: PL/D "New D source file" wizard available  (Read 4622 times)

Offline Austin Hastings

  • Single posting newcomer
  • *
  • Posts: 2
PL/D "New D source file" wizard available
« on: October 12, 2010, 11:53:23 pm »
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

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Re: PL/D "New D source file" wizard available
« Reply #1 on: October 13, 2010, 10:03:05 am »
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.


Offline Austin Hastings

  • Single posting newcomer
  • *
  • Posts: 2
Re: PL/D "New D source file" wizard available
« Reply #2 on: October 16, 2010, 12:54:42 am »
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