novelWriter icon indicating copy to clipboard operation
novelWriter copied to clipboard

Split at Cursor into New Document

Open Alok-S-Sharma opened this issue 1 month ago • 3 comments

Summary Add a command to split the current document from the caret position to the end into a new document.

Proposed Behaviour

  • Move all text from the current cursor position to the end of the current document into a new document.
  • The new document should appear immediately below the current one in the project tree (not at the bottom).
  • Optionally, auto-generate its title from the first line or heading of the split section.

Why This Helps

  • Complements Create Document from Selection (#1486).
  • Great for breaking long scenes or notes during drafting without inserting extra headings.
  • Avoids manual cut-paste operations and keeps the project tree organised.

References:

  • Discussion #2569 (original proposal and context)
  • Related: #1486 (Create document from selected text)

Alok-S-Sharma avatar Oct 30 '25 07:10 Alok-S-Sharma

Thanks! I've added it to the 2.9 release milestone. This fits well with the feature types I'm planning for that release.

vkbo avatar Oct 30 '25 08:10 vkbo

Thanks so much for including it!

Really glad it aligns with the direction for 2.9 — looking forward to testing it in the beta.

Alok-S-Sharma avatar Oct 30 '25 10:10 Alok-S-Sharma

Yeah, I'm planning to focus on document import/export/processing and project/manuscript export in 2.9, so I've been filtering features based around that. I'm trying to reduce the scope of the release milestones so I can have shorter release cycles, but I never really succeed. 😅

vkbo avatar Oct 30 '25 11:10 vkbo