newdoc icon indicating copy to clipboard operation
newdoc copied to clipboard

Renaming a module

Open msuchane opened this issue 5 years ago • 3 comments

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.

msuchane avatar Jun 15 '20 19:06 msuchane

@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.

msuchane avatar Dec 11 '20 11:12 msuchane

In my recent survey, many people said that they'd appreciate a renaming option. I'm adding this issue to the next milestone.

msuchane avatar Apr 09 '21 19:04 msuchane

FYI, I've attempted to implement this here> https://github.com/Lennonka/refactordoc Efficiency is doubtful but it kinda works :)

Lennonka avatar Apr 10 '25 21:04 Lennonka