# Implementation Plan: Structural File Editor

## Phase 1: Unification
- [x] Task: Create Structural File Editor Modal
    - [x] Add `app.show_structural_editor_modal = False` to `App.__init__`.
    - [x] Create `render_structural_file_editor_modal(app: App)` in `src/gui_2.py` (implemented in `src/structural_editor_modal.py`).
    - [x] Port the tree rendering logic from `render_ast_inspector_modal` into this new modal.
    - [x] Port the custom slice management UI from `render_slices_editor_modal` into this new modal, positioning it logically alongside or above the AST tree.
- [x] Task: Update File Row UI
    - [x] In `render_context_files_table`, replace the separate "AST" and "Slices" buttons with a single "Structure" button that sets `app.show_structural_editor_modal = True` and sets the target file.

## Phase 2: Verification
- [x] Task: Verification
    - [x] Open the Structural File Editor for a complex Python file.
    - [x] Verify both AST nodes and custom slices are visible and interactive.
    - [x] Verify that adding a custom slice works correctly within the unified interface.
- [x] Task: Conductor - User Manual Verification 'Phase 2: Verification' (Protocol in workflow.md)