invicticide / fractive

Fractive is a free, open-source, Markdown-based hypertext authoring tool for writing interactive fiction.
http://fractive.io
Other
37 stars 5 forks source link

CLI refactor commands #67

Open NQNStudios opened 6 years ago

NQNStudios commented 6 years ago

It struck me that one thing that's currently difficult is renaming sections in Markdown, especially the more they're referenced in links and macros. Here's a functionality idea that will also benefit us when it comes to making an editor:

fractive refactor @Section @NewSectionName -- searches all Markdown files and updates the section declaration as well as any macro references to @Section

Gotcha: sections can also be referenced in code and those cases will be harder (or impossible) to detect programmatically and fix.