Reimplement chapters functionality from the chapters plugin using clones, hoist, and script buttons:

I implemented some proof of concept code that implements "Hoist Buttons". No persistence yet. To try it out, download the attached mod_scripting.leo file and hit the "interactive test" button. This leo file contains both the chapter_hoist plugin and a rewritten mod_scripting plugin (see If you like what you see in the interactive test, then you can copy the @file and @file files into your plugin area and use them as plugins.

"Hoist Buttons" instructions