Ticket #194 (new enhancement)

Opened 3 years ago

Easy way to create multiple new pages from an overgrown old one by !create markup

Reported by: Martin Bartos Assigned to: developer
Priority: normal Milestone:
Component: Instiki Version: 0.10.0
Severity: normal Keywords:
Cc:

Description

Problem: Do you often find that you start a page which after a short while begins to overflow? Do you find that your next step involves refactoring the text, keeping an overview and making sub-pages which take the bulk of the text from the original to put it into a new ones? Do you find it tedious going through the: create a page link name, cut text from original, open new blank page, paste in text, return to first page, (repeat until finished) process? - I bet you do and so do thousands of other wiki users who want to keep their wiki tidy..

Enhancement suggestion: It would be greatly timesaving, less risky of clipboard loss, positively feature-differentiate instiki, if it could mark up sections for cut into a new linked page while editing a page. (It might be even lovelier if the new page was optionally automatically included into the original..)

How: Suggested syntax - take a page containing:

blah blah 
wibble wibble wobble 
flip flop 
bligum

then markup as..

[[!create Blah] blah blah] 
[[!create Wubble] wibble wibble wobble] 
[[!create-include Flip] flip flop] 
bligum

with the result of page which has contents

[[Blah]] 
[[Wubble]] 
[[!include Flip]] 
bligum

as well as three linked pages with the contents which have been created.

There would be one exception case to handle where a page already exists with the suggested name - in which case the suggested behaviour could be to raise an exception, to append the included text as an edit to the top of the page or to replace. This could be resolved with !create !create-overwrite !create-append or similar with suffixed include.