feat: Ensure 06-First Draft folder is expanded in file list when opening projects

- Add explicit code in open_workspace to ensure manuscript folder is not collapsed
- Update README to clarify that project root is opened with manuscript folder expanded
- Keep workspace at project root but ensure file list shows 06-First Draft expanded

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
2026-09-13 09:08:26 -05:00
parent caa0001922
commit 9f575c7c7e
2 changed files with 9 additions and 6 deletions
+4
View File
@@ -91,6 +91,10 @@ impl App {
self.load_characters();
self.autocomplete = None;
self.collapsed.clear();
// Ensure the manuscript folder (e.g., 06-First Draft) is always expanded
if let Some(ref dir) = self.manuscript_dir {
self.collapsed.remove(dir);
}
if let Some(idx) = first_listed(&self.files, self.manuscript_dir.as_deref()) {
self.select(idx);
}