English | 日本語
Edit a file on an SSH or S3 pane (File → Edit File, edit_file) and it
opens in your editor like a local file. Each time you save, XeFM uploads your changes to where the file
came from.
edit_file; its key depends on your keymap preset —
see Keymap Presets).TEXT_EDITOR, or
the edit program in FILE_ASSOCIATIONS).Uploaded ssh://host/srv/app/config.yaml.The copy is kept under ~/.xefm/edit/, in folders that follow the remote path
(~/.xefm/edit/ssh/host/srv/app/config.yaml), so your editor’s title bar
shows which file you are editing.
Saving works the same with a terminal editor like vim and with a GUI editor like VS Code. XeFM checks the copy about once a second for as long as it is running, so an editor in its own window doesn’t need a wait flag.
Before every upload XeFM checks whether the remote file changed since you opened it (or since your last upload). If it did, XeFM asks before overwriting:
A failed upload — lost connection, permission denied — shows a message naming the error and the local copy that still holds your edit. Nothing is deleted. Save again to retry, or copy the file up by hand.
Local copies that match the remote file are deleted. A copy holding an edit that never reached the remote is kept, and the log names it.
Running edit_file again on a file you are already editing reopens the same copy
when it holds an edit that hasn’t been uploaded. Otherwise XeFM downloads the
file again, so you start from what the server holds now.