Skip to content

feat(fm): F3/F4 open files in the editor (view/edit) — local#32

Merged
iret77 merged 1 commit into
mainfrom
feat/fm-view-edit
Jul 5, 2026
Merged

feat(fm): F3/F4 open files in the editor (view/edit) — local#32
iret77 merged 1 commit into
mainfrom
feat/fm-view-edit

Conversation

@iret77

@iret77 iret77 commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator

F3 (View) / F4 (Edit) now open the file under the cursor in a code editor pane instead of downloading it. A directory is entered as before; Enter still activates (dir → navigate, file → download), so Download stays available.

  • New WorkspaceAction::OpenFileInEditor { node_id, path }: local files open directly via add_tab_for_code_file (full view + edit); remote files report that native editor integration is coming rather than downloading a local copy that wouldn't save back.
  • open_cursor_in_editor dispatches it; F3/F4 (key + function bar) route here.

Scope & honesty: local files fully work. Remote view/edit is the deliberate follow-up. The correct path is zaplex's native remote editor (CodeSource::RemoteFileTree, buffer-sync via the SSH daemon — saves back safely), which requires resolving the file manager's SFTP host to the daemon HostId (two separate subsystems). A download-to-temp shortcut would risk silent data loss on save, so it's avoided; the remote case reports clearly for now.

Verified: cargo check -p warp 0/0; 252 sftp tests green (1 new: F3/F4 on a directory navigates). No build triggered.

🤖 Generated with Claude Code

F3 (View) / F4 (Edit) now open the file under the cursor in a code
editor pane instead of downloading it. A directory is entered as before.

- New WorkspaceAction::OpenFileInEditor { node_id, path }: local files
  (empty node_id) open directly via add_tab_for_code_file (full view +
  edit); remote files report that native editor integration is coming
  rather than downloading a local copy that wouldn't save back.
- SftpBrowserView::open_cursor_in_editor dispatches it; F3/F4 (key + bar)
  route here. Enter still activates (dir → navigate, file → download),
  so Download stays available.

Scope: local files fully work. Remote view/edit is the honest follow-up
— the correct path is zaplex's native remote editor (buffer-sync via the
SSH daemon, saves back safely), which needs the file manager's SFTP host
resolved to the daemon HostId; a download-to-temp shortcut would risk
silent data loss on save and is deliberately avoided.

Verified: cargo check -p warp 0/0; 252 sftp tests green (1 new:
F3/F4 on a directory navigates).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@iret77 iret77 merged commit f00512e into main Jul 5, 2026
2 checks passed
@iret77 iret77 deleted the feat/fm-view-edit branch July 5, 2026 01:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant