newdoc
newdoc copied to clipboard
Renaming a module
Add an option to rename an existing module:
- Change the title
- Change the ID and context attributes
- Change the file name
I expect this to be a relatively difficult task.
@johnwilkins pointed me to his fccAddModule project, which fills a similar use case as newdoc and implements a renaming feature. He comments:
I thought it was going to require a bunch of RegEx to get it to work, but simple substring functions seem to do the trick.
I'll take a look at the approach he took to see if we can adopt it in newdoc.
In my recent survey, many people said that they'd appreciate a renaming option. I'm adding this issue to the next milestone.
FYI, I've attempted to implement this here> https://github.com/Lennonka/refactordoc Efficiency is doubtful but it kinda works :)