Skip to content

Split at Cursor into New Document #2571

@Alok-S-Sharma

Description

@Alok-S-Sharma

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 (Create document from selected text #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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    editorComponent: EditorenhancementEnhancement: New feature or improvementplannedNote: Feature planned for a later release

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions