implement embedded in-pane text editor using ratatui-textarea#2
Merged
Conversation
replace the external-editor suspend/resume approach with a live in-pane editor: pressing Enter on a text file replaces the active pane slot with an EditorPane while the other pane stays fully navigable. architecture: - PaneContent enum wraps Explorer | Box<EditorPane> so each pane slot can hold either a file listing or an open file - EditorPane wraps ratatui-textarea TextArea<'static> with load, save, and key-handling logic - DualPane gains open_editor_in_active / close_editor_in_active, active_editor / active_editor_mut accessors, handle_editor_key forwarding, left_dir / right_dir / active_dir / refresh_both helpers - map_key routes all key events through Action::EditorKeyInput when the active pane is an editor, bypassing the normal navigator mapping - Action::OpenEditor now carries the path; CloseEditor, SaveEditor, EditorKeyInput added editor key bindings: - Ctrl+S - save to disk - Ctrl+Q or Esc - close (confirm dialog if modified) - Tab - switch to other pane - Ctrl+I - insert literal tab character - all other keys handled by ratatui-textarea (arrows, undo/redo Ctrl+Z, search Ctrl+F, copy/cut/paste, emacs Ctrl+A/E/K/Y, etc.) status bar shows Ln/Col when editor is active. dependency: ratatui-textarea = "0.8" (ratatui org fork, ratatui 0.30 native, API-compatible with tui-textarea but modular sub-crate deps). all 149 tests pass. https://claude.ai/code/session_01H2u7LG4Er99DFEHw242bNU
i1rr
added a commit
that referenced
this pull request
Apr 24, 2026
i1rr
added a commit
that referenced
this pull request
Apr 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.