feat: Add 'New Scene' button to file list menu for creating linked planning+draft files

- Added create_scene_pair() method to workspace.rs
- Added '+ New Scene' button in file_list.rs UI
- Button creates both planning file (05-Plot/act_N/scene_XX.md) and draft file (06-First Draft/Act N/sceneXX.md)
- Files are automatically linked via YAML frontmatter (draft_file and planning_template fields)
- Auto-detects current act from folder context
- Auto-generates next scene number
- Selects the draft file after creation (ready to edit)
- Includes hover text explaining the feature

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
landon
2026-09-15 14:27:30 -05:00
parent b183237d59
commit 921f3e74c5
2 changed files with 327 additions and 0 deletions
+10
View File
@@ -539,6 +539,16 @@ impl App {
if ui.button("+ New").clicked() {
self.create_file();
}
if ui
.button("+ New Scene")
.on_hover_text(
"Create a planning file in 05-Plot and a linked draft file \
in 06-First Draft with automatic cross-references",
)
.clicked()
{
self.create_scene_pair();
}
});
if ui
.button("+ New from template")