Skip to content

Editing files

Opening a file

In the SFTP browser, tap "Open in Editor" on any file. The app first checks the file ("Checking file...") to confirm it can be edited safely.

The editor shows the file with syntax highlighting. Tap the menu and choose "Toggle word wrap" to turn line wrapping on or off.

Large files

For very large files, the editor loads only the part you are viewing. The header shows which lines you see, for example "Lines 1-50 of 10000". Below the last line it says "· scroll to load more". Scroll down to load more content.

Files that cannot be edited

The app refuses to open three kinds of files:

  • Binary content: "Binary content - saving it would corrupt the file." Saving binary data back would corrupt the file, so the app blocks it.
  • Not valid UTF-8 text.
  • UTF-16 or UTF-32 encoded files: the editor only writes UTF-8, so saving would change the encoding.

In each case, you can tap "Open as text anyway" to open the file if you understand the risk.

If the file is too large to edit, the app says so and suggests using "Download" instead.

Unsaved changes

If you try to close the editor with unsaved changes, the app asks "Discard changes?" Tap "Discard" to lose your changes, or "Cancel" to go back to editing.

File changed on the server

If the file changes on the server while you have it open, saving warns you: "This file was modified on the server since it was opened. Saving now will overwrite those changes." Tap "Save anyway" to overwrite, or "Cancel" to review the changes first.

Termphin - SSH that survives the dropped connection.