File editor
ZestSSH has a text editor for the files on your servers. It opens from the SFTP screens, on a computer (Windows, macOS, Linux) and on a phone or tablet (iOS, Android). Saving writes the file back to the same path on the host.
The editor holds several files at once, as tabs, and they can come from different hosts. It keeps a file’s encoding and line endings as they were, keeps your unsaved text as an encrypted draft on the device, and can save a file your account may not write with Save as root, after asking.
Opening a file
Section titled “Opening a file”On a computer, open the SFTP dock and do one of these in either pane:
- Double-click a file.
- Right-click a file and choose Open in editor.
- With two files or more selected (from 4.3), right-click one and choose Open 3 in editor, use the same button in the pane’s footer, or press Enter. Each opens in a tab of its own; folders in the selection are skipped, and the label says so.
This works for files on a server and for files in your computer’s own pane (This PC on Windows, This Mac on a Mac, This computer on Linux).
On a phone or tablet, open SFTP, tap a file and tap Edit in editor.
Opening a file that is already open (the same file on the same host) switches to its tab instead of opening a second copy. The same host means the same saved host, signed in as the same account: two hosts that share a name each get a tab of their own, and Save writes to the host the tab came from.
What does not open
Section titled “What does not open”- Files over 4 MB. On a computer the file manager says the file is too large to edit and to use Download instead. On a phone it says File too large to open in the editor, with its size, and to download it instead. A file that turns out larger than 4 MB while it is being read is refused too, so a server that reports the wrong size cannot slip a bigger file in.
- Binary files, on a computer. The computer’s file manager refuses a file that looks binary, by its extension or by its first bytes, and says to open it with the right app or download it. PNG, JPEG, GIF, WebP and BMP images open in a preview instead; other image types are refused as binary, except SVG, which is text and opens in the editor as XML. A UTF-16 text file usually looks binary to this check, so the computer’s file manager refuses it too. The phone’s file list has no binary check: it checks only the size.
A file that is not UTF-8 is not refused. See Encodings and line endings.
Each open file is a tab. A tab shows the file name, a chip with its host’s name, and a coloured stripe at its left edge. A host always gets the same colour, worked out from its name, so all the tabs of web-01.example.com share one colour. Files from your computer’s own pane carry the pane’s name (This PC on Windows, This Mac on a Mac, This computer on Linux), not your computer’s own name, and get a colour too.
- A tab with unsaved changes shows a dot in your accent colour (orange by default) where its close button would be.
- The current tab and a tab under the mouse show the close button (Close tab) instead.
- On a computer, Ctrl+Tab goes to the next tab and Ctrl+Shift+Tab to the previous one.
Opening more files: Open files
Section titled “Opening more files: Open files”From 4.3, the plus button at the end of the tab strip (Open a file) opens Open files, a dialog on a computer and a sheet on a phone. Open files… in More (and in a phone’s More sheet) opens it too.
- Places. It lists the current file’s host (under Current file), every other host connected now (under Connected hosts), and, on a computer, this computer (This PC on Windows, This Mac on a Mac, This computer on Linux). With no place to list, it says “Connect to a host to open its files here.”
- Files are listed as the file pane lists them, with their icons, size and last change, starting in the current file’s folder. Up and Refresh are at the top, and the path field (“Type a path, then press Enter”) goes to a folder or opens a file; a path where nothing is says so (“Nothing is at /srv/app.”).
- Several at once. Tick files with their boxes, or with Ctrl and Shift on a computer and a tap on a phone, in more than one folder and more than one place. Ctrl+A ticks the folder’s files, and a double click opens one file at once. Open 3 files opens each in a tab of its own, in the order you ticked them. Folders are never opened.
- Already open. A file already in a tab is marked In a tab and is never opened twice.
- Browse… (on this computer only) opens your system’s own file picker, with several files allowed.
- Up to 20 at once. More than that says so and opens nothing. A file too large or not text is refused as it would be on its own, and when several were asked for, one notice says how many opened, with each one left out and why in its details.
A listing that fails says why, with Retry and Copy details; a team’s host whose vault does not allow SFTP says so. A window of its own has no Open files: it holds no connection to list with. A phone has no place for its own storage: the editor could not save such a file back where it came from.
12 tabs at most
Section titled “12 tabs at most”The editor holds at most 12 files. Opening a 13th asks which tab to close, for example Close a tab to open app.yml?, with the note that 12 files are open, the most the editor holds at once.
The dialog lists every open file with its host, with a dot on any file that has unsaved changes. The first file with no unsaved changes is picked for you. Pick the one to close and click Close and open, or Cancel.
If the tab you pick has unsaved changes, you are asked whether to save it first (for example Save changes to default?), with Save, Don’t save and Cancel. Save writes it straight away. This save does not check whether the file changed on the server and does not offer Save as root. If it fails, the editor says Not saved. with the reason, and the new file does not open.
When a host disconnects
Section titled “When a host disconnects”When a host’s connection drops, its tabs turn grey with an unplugged icon and a Reconnect button. Your text stays in the tab: the tooltip says the host is not connected and the text is kept here. The editor checks the connections every 3 seconds.
Click Reconnect to connect again. If that does not work, the editor says the host is still not connected: reconnect its session, then try again.
Find and replace
Section titled “Find and replace”Press Ctrl+F, or click Find in the toolbar (Find in the bottom bar on a phone). Text you selected on one line fills the Find… field.
Inside the field are four switches:
- Match case (Aa): only matches with the same capitals.
- Whole word (ab): only whole words, so
logdoes not matchlogin. - Regular expression (.*): the search text is a pattern. A pattern that is not valid shows Not a valid pattern in red.
- In the selection: searches only the text that was selected when you turned it on.
Next to the field, a count such as 3 of 12 (or No results), then Previous match and Next match. Enter in the field goes to the next match.
To replace, press Ctrl+H or click Replace in the find bar. The Replace with… field appears, with Replace (the current match) and Replace all. Enter in this field replaces the current match.
- When the editor is at least 860 pixels wide, find and replace sit in one row. When it is narrower, the replace field moves to a second row.
- The replacement text is put in exactly as you typed it, even with Regular expression on. A group reference such as
$1or\1is not filled in with what the group matched. - Replace all is undone in one step.
- Find also searches folded sections. Matches inside a fold are counted but not highlighted until the fold is opened, and Replace does nothing while the current match is inside a fold. Replace all opens every fold first, so you can see what it changed.
- Find counts up to 100,000 matches.
Close find bar closes it.
Go to line
Section titled “Go to line”Go to line asks for a line number, from 1 to the number of lines in the file, and starts with the line you are on. Type the number and click Go. A number outside that range gets an error, for example Enter a line from 1 to 180. Going to a line in a folded section opens the fold.
Open it:
- On a computer: from the More menu, by clicking the position (for example Ln 42, Col 7) in the status bar, or with a key (see Keyboard shortcuts).
- On a phone: from the More sheet, where the row also shows where you are, for example Line 42 of 180.
The toolbar and the status bar (computer layout)
Section titled “The toolbar and the status bar (computer layout)”Toolbar
Section titled “Toolbar”The toolbar shows the host chip with its connection dot and the file’s path, with the folder dimmed and the file name in bold. Once the host has answered, a chip with a lock shows the file’s owner, group and mode, for example root:root 644.
Then come Find, Wrap, the language, Save as root (only when needed), Save and More. Save stays grey until there is something to save, and shows a spinner while it saves. The words Find and Wrap, and the Ctrl+S hint on Save (⌘S on a Mac), show only when the toolbar is at least 980 pixels wide.
Wrap turns word wrap on or off. Word wrap is on each time the editor opens; the choice is not remembered.
Status bar
Section titled “Status bar”The status bar is at the bottom of the editor. On the left:
- The host, with a green dot when it is connected and a red dot when it is not.
- The file’s full path.
- The save state: how many lines are unsaved (for example 3 unsaved lines, or 3 unsaved lines, draft kept once a draft is kept), Modified, or Saved at and the time.
On the right, in this order. Click an item to change it:
| Item | Example | Click it for |
|---|---|---|
| Position | Ln 42, Col 7 (with (5 selected) when text is selected) | Go to line |
| Indentation | Spaces: 2 or Tabs | Indentation |
| Encoding | UTF-8 | Encoding |
| Line endings | LF | Line endings |
| Language | YAML | Language |
| nano keys | Turns nano keys on or off | |
| Font | the font name and size in px | Nothing (its tooltip is Terminal theme and font) |
The More menu
Section titled “The More menu”More (the three dots) has:
- Open files… (from 4.3): see Opening more files. Not in a window of its own.
- Go to line
- Reload: reads the file from the host again and replaces the text. It does not ask first, so any unsaved changes are lost. It then says Reloaded from server, or Not reloaded. with the reason.
- Terminal theme and font (a check mark): see How the code looks.
- nano keys (a check mark): see Keyboard shortcuts.
- Minimap (a check mark): see Minimap. Not on a tablet.
- Bigger text and Smaller text
- Editor keys: the list of nano keys.
Line numbers
Section titled “Line numbers”Line numbers stay level with the first row of their line when a long line wraps, and the current line’s number is highlighted. A bar in your accent colour (orange by default) beside a line marks it as changed since the last save. Click the arrows beside the numbers to fold and unfold long sections.
Encodings and line endings
Section titled “Encodings and line endings”The editor keeps a file the way it was: it saves with the same encoding and the same line endings it found, unless you pick others.
Encodings
Section titled “Encodings”The editor reads and writes UTF-8, UTF-8 with BOM, Windows-1252, ISO-8859-1, ISO-8859-15, UTF-16 LE and UTF-16 BE.
It works out a file’s encoding in this order:
- A byte order mark at the start of the file: UTF-8 with BOM, UTF-16 LE or UTF-16 BE.
- UTF-8, if the file is valid UTF-8.
- Otherwise Windows-1252, which can read every byte, so nothing is lost and saving the file back writes the same bytes.
A file that is not UTF-8 opens as Windows-1252 with a notice, This file is not UTF-8: it opened as Windows-1252, the closest match, and if its letters look wrong you can reopen it in another encoding. Click Pick an encoding, or Hide to close the notice.
The Encoding picker (click the encoding in the status bar, or Encoding in the phone’s More sheet) shows Now and the current encoding, and has two modes:
- Reopen with reads the file from the host again, in the encoding you pick. If you have unsaved changes, it asks you to save them first.
- Save with writes the file in the new encoding from the next save on.
Next to the names, the picker says what they are for: Western European (Windows-1252), Latin-1 (ISO-8859-1), Latin-9 (ISO-8859-15) and some Windows tools want it (UTF-8 with BOM).
If your text has a character that the chosen encoding cannot hold, the save is refused and your text stays as it is. The message names the character and its line, for example: Not saved: “€” on line 12 has no byte in ISO-8859-1. Save with UTF-8 from the status bar, or take it out.
Line endings
Section titled “Line endings”The editor finds a file’s line endings, LF, CRLF or CR, and saves with the same ones.
The Line endings picker (click them in the status bar, or Line endings in the phone’s More sheet) offers:
- LF: Linux, macOS and most servers
- CRLF: Windows
- CR: Classic Mac OS
A file that mixes line endings is saved with the kind it has most of (CRLF wins a tie). On a computer, the status bar then shows a * after the line endings, and its tooltip says the file mixed line endings and which ones it is saved with throughout.
Changing the encoding or the line endings counts as an unsaved change, even if no text changed.
Indentation and languages
Section titled “Indentation and languages”Indentation
Section titled “Indentation”The editor works out how a file indents from the first lines of the file that are not empty (about the first 400). If more lines start with a tab, it keeps tabs. Otherwise it uses the most common step of 2, 4 or 8 spaces. A file with no indentation uses its language’s usual step: 2 spaces for YAML, JSON, JavaScript, TypeScript, Ruby, HTML, XML, CSS and Markdown, tabs for Makefile and Go, and 4 spaces for everything else.
Tab types a tab in a file indented with tabs, and spaces up to the next indent stop otherwise. With lines selected, Tab indents them. To change it, click the indentation in the status bar.
In a YAML file, Tab always types spaces, never a tab, even if the file already has tabs. The Indentation picker does not offer Tabs for YAML.
Languages
Section titled “Languages”The editor colours nginx, Apache, systemd, Dockerfile, YAML, JSON, INI, TOML, Properties, SSH config, crontab, Shell, Python, JavaScript, TypeScript, PHP, Ruby, Perl, Lua, Go, Rust, HTML, XML, CSS, Markdown, SQL, PostgreSQL, Makefile and Diff. Anything else is Plain text.
It picks the language from the file’s name and folder (for example nginx.conf or a file under /nginx/, Dockerfile, sshd_config, crontab or a file under /cron.d/, docker-compose.yml, .bashrc, a file under /apache2/, and a systemd unit such as .service or a .conf file under /systemd/), then from its extension, then from its #! line. To change it, click the language in the toolbar or the status bar, or tap Language in the phone’s More sheet.
How the code looks
Section titled “How the code looks”Terminal theme and font is on by default. The code then uses your terminal theme and terminal font, so it looks as it does in a session, and a dark terminal theme stays dark even when the app is light. See App themes and Terminal fonts.
Turn it off in the More menu on a computer. The code then uses the app’s own colours and the JetBrains Mono font. The phone layout has no switch for it: it keeps the choice made on that device, which is on by default. The choice is remembered on this device.
Text size
Section titled “Text size”Make the code bigger or smaller:
- On a computer: Bigger text and Smaller text in the More menu.
- On a phone: the minus and plus buttons (Smaller text and Bigger text) beside Text size in the More sheet.
- On a touch screen: pinch with two fingers.
The size goes from 8 to 28 and is remembered on this device. Until you set one, the editor uses your terminal font size (with the terminal look) or 13 (12 on the phone layout) with the app’s look.
Minimap
Section titled “Minimap”On a computer (Windows, macOS, Linux), the editor can show a minimap: a narrow drawing of the whole file at the right of the code. Each line is a thin bar in its colours, and a box shows the part you can see. Click or drag in the minimap to scroll the code, or use the mouse wheel over it.
The minimap is off by default. Turn it on with Minimap in the More menu; the choice is remembered on this device. It never shows on a phone or a tablet, and not when the editor window is narrower than 600 pixels.
Drafts: unsaved text is kept
Section titled “Drafts: unsaved text is kept”About 2 seconds after each change, the editor keeps your unsaved text as a draft on the device, with its encoding and line endings. If the app closes or crashes, or the connection drops, your text comes back the next time you open the file.
- Drafts are kept per host. A draft belongs to the saved host the file came from (the host itself, the space it is kept in, Personal or a team, and the account its session signs in as), never to the name the host shows. Two hosts that are both called
web-01, one in Personal and one in a team, keep drafts of their own, and a draft never comes back on another host. - A draft of a file on one of your own hosts, or on This computer, is kept in this profile’s encrypted database on this device (see Data at rest). A draft of a team host’s file is kept in that team’s own encrypted database on this device, so it never shows on a Personal host or in another team, and it goes when the team leaves the device. A team’s drafts are kept and put back only while that team is open on this device. Drafts are never synced and never in a backup.
- A draft is filed under a hash of its host and path, so its name gives away neither.
- A draft is deleted after 7 days. Old drafts are cleared each time the editor opens, and also as each database opens (when the app starts or is unlocked, and as a team’s opens), whether or not you open the editor. An expired draft is never put back.
- No drafts are kept while the app is locked, or for a file whose saved host the editor cannot tell (a pane with no session of a saved host behind it).
When a draft comes back
Section titled “When a draft comes back”Open the file again and the draft comes back as unsaved text. A Draft restored notice says how many unsaved lines it has and when they are from, and that they were kept encrypted on this device. A second line says whether the file on the host changed since:
- The file on web-01.example.com has not changed since you opened it, so saving is safe.
- The file on web-01.example.com has changed since then. Show changes before you save.
When this cannot be checked, there is no second line. The notice has:
- Show changes: reads the file from the host again and compares it with your draft, from the first line that differs. Lines marked
-are on the host and lines marked+are in your draft. It shows at most 400 lines of each and counts the rest. If they match, it says The draft and the file are the same. - Discard draft: throws the draft away and puts back the file’s text as it was read.
- Hide: closes the notice. Your unsaved text stays.
If the draft’s text is the same as the file now, the draft is deleted quietly and no notice shows.
When a draft is removed
Section titled “When a draft is removed”A draft is removed when you save, when your text goes back to what was saved, with Discard draft, and with Don’t save when you close a tab or the editor.
Saving
Section titled “Saving”Click Save, press Ctrl+S (or Cmd+S on a Mac), or tap Save in the phone’s bottom bar.
Before it writes, the editor checks whether the file on the host changed since it was read. It compares the file’s SHA-256 (from sha256sum or shasum on the server), or its size and time when the server has neither. This also catches a file put back from an older copy. If the file changed, it asks File changed on the server with Reload, Cancel and Save anyway.
A save that works says Saved and the file name. A save that fails says Not saved. with the reason, and your text stays.
Save as root
Section titled “Save as root”Sometimes your login account may not write a file, for example /etc/nginx/nginx.conf owned by root when you signed in as deploy. Save as root saves it through sudo, and always asks first.
When it is offered
Section titled “When it is offered”When the editor opens a file, it asks the host who owns the file, its mode, whether your account may write it, and whether sudo is there. If your account may not write the file and the host has sudo:
- A Save as root button shows in the toolbar (on a phone, in the More sheet, where the row says who the file belongs to and that it asks for your password each time).
- Save and Ctrl+S lead to the same question.
A normal save that the host refuses with “permission denied” also leads to Save as root, when the host has sudo.
Save as root is not available on an SFTP only host, on a Windows host, for a path with characters a shell could read as part of a command, for your computer’s own files, or in a window of its own.
The question
Section titled “The question”First, as for any save, the editor checks whether the file changed on the server and asks File changed on the server if it did.
Then it asks, for example, Save /etc/nginx/nginx.conf as root? The dialog explains what will happen: ZestSSH puts your text in a temporary file on the host, then sudo copies it into place, and the file’s owner and mode stay as they are.
Type your password into Password for sudo and click Save as root, or Cancel. The password is used for this save only. ZestSSH never stores or syncs it, so you type it each time.
When it works, the editor says so, for example Saved nginx.conf as root.
How it works
Section titled “How it works”- Your text goes into a new file in
/tmpwith a random name (/tmp/.zestssh-edit-and random characters) that only your login account can read. sudo -k -Srunscpto copy it over the file. The-kmakessudoask for the password every time.- The
/tmpfile is removed.
The password reaches sudo on its standard input, never on a command line. If the host sends nothing for 60 seconds, ZestSSH stops waiting.
If it does not work
Section titled “If it does not work”The dialog stays open and says why under the password field, and your text is kept. The field is emptied as soon as you click Save as root, so type the password again to retry. While the save runs, Cancel is grey and the dialog cannot be closed.
| Message | What it means |
|---|---|
| Type the password. | The field was empty. |
| sudo did not take that password. Type it again. | The password was wrong. A password with a line break in it is refused this way, and the password is never sent to the host. |
| This account may not use sudo here. | The host’s sudo does not allow your account. The message adds what the host said. |
| sudo could not be run on web-01.example.com: it has no sudo, or allows SFTP only. | The host has no sudo, or the account allows SFTP only. |
| sudo on web-01.example.com runs only from a terminal. | The host’s sudo needs a terminal. Run the command in a terminal to the host instead. |
| The host did not answer, so ZestSSH stopped waiting. | Nothing came back for 60 seconds. Refresh to see what was done. |
| The save as root did not work. | sudo ran, but the copy failed. The message adds what the host said. Other failures, such as a character the encoding cannot hold or the temporary file not being written, show their own reason. |
The sudo refusals in this table end with an error code. Type the password. and The save as root did not work. have none.
Closing
Section titled “Closing”Closing a tab with unsaved changes asks whether to save it (for example Save changes to nginx.conf?), and says how many lines changed since the last save. Save (or Enter) saves, Don’t save (in red) throws the changes and the draft away, and Cancel keeps the tab open. You get this question from the tab’s close button, from Ctrl+W (with nano keys off) and from Close tab in the phone’s More sheet. Closing the last tab closes the editor.
Closing the whole editor (its X, or Android’s back) asks once:
- With one unsaved file, it asks that file’s question.
- With two or more, it lists them (for example Save changes to 3 files?) and offers Save all, Don’t save and Cancel. Save all saves the files one by one and stops at the first that is not saved, leaving the editor open.
On an iPhone or iPad the swipe back does nothing while files are unsaved, so close with the X.
Leaving the editor closes all its tabs.
On a phone or tablet
Section titled “On a phone or tablet”The editor uses its phone layout whenever its window is narrower than 600 pixels: usually a phone (iOS, Android) held upright, and also any computer or tablet window made that narrow. A wider window, such as a tablet’s, gets the computer layout, with the toolbar, More menu and status bar, but never the minimap on a phone or tablet.
Top bar and tabs
Section titled “Top bar and tabs”At the top is a bar with a close X (Close), the file name, and the host with its connection dot and the folder. While the keyboard is up, Done is there and hides the keyboard. Otherwise the chip with a lock shows the file’s owner and mode.
Below it, the tabs, which you can swipe sideways. From 4.3 the plus button at their end opens Open files on the hosts connected now (see Opening more files). There is no Open in a separate window here.
The keyboard does not come up by itself when the editor opens. Tap the code to type.
The bottom bar
Section titled “The bottom bar”When you are not typing, the bottom bar has Save, Find, Undo, Redo and More. Save is in your accent colour (orange by default) only when there is something to save.
The keys row
Section titled “The keys row”While the keyboard is up, a keys row takes the place of the bottom bar, with the keys a config file needs:
- Tab and Esc
- Undo and Redo
{ } [ ] ( )- The four arrows
| / \ ~ ` $ # " ' : ; = - _ < > & * ! % @ ^
Slide the row sideways to reach the rest. Esc closes the find bar if it is open, and otherwise hides the keyboard.
The More sheet
Section titled “The More sheet”More shows the host and the path at the top, then:
- Open files… (from 4.3)
- Go to line, with where you are (for example Line 42 of 180)
- Wrap lines (a switch)
- Text size (minus and plus buttons)
- Encoding
- Line endings
- Language
- Save as root (only when needed)
- Close tab (in red)
The phone layout has no status bar, no Reload, no Terminal theme and font switch, no nano keys switch, no minimap and no Editor keys list.
Keyboard shortcuts
Section titled “Keyboard shortcuts”These work on a computer (Windows, macOS, Linux) with a keyboard.
Always
Section titled “Always”| Keys | What they do |
|---|---|
| Ctrl+S | Save |
| Ctrl+F | Find |
| Ctrl+H | Find and replace |
| Ctrl+Tab | Next tab |
| Ctrl+Shift+Tab | Previous tab |
| Ctrl+Y or Ctrl+Shift+Z | Redo (Windows and Linux) |
On a Mac, Cmd+S saves and Cmd+F finds too.
nano keys
Section titled “nano keys”nano keys are on by default, for people used to the nano editor on a server. Turn them on or off with the nano keys chip in the status bar or nano keys in the More menu. The choice is remembered on this device.
With nano keys on:
| Keys | What they do |
|---|---|
| Ctrl+A | Start of the line |
| Ctrl+E | End of the line |
| Ctrl+K | Cut the line, or the selection. Press again to add the next line. |
| Ctrl+U | Paste what was cut |
| Ctrl+O | Save |
| Ctrl+W | Find |
| Ctrl+\ | Find and replace |
| Ctrl+/ or Alt+G | Go to a line |
| Alt+U | Undo |
| Alt+E | Redo |
| Ctrl+Shift+A | Select all (Windows and Linux) |
| Ctrl+G | Show the Editor keys list |
What Ctrl+K cuts is also put on the system clipboard. On Windows and Linux, Ctrl+/ goes to a line instead of turning a line into a comment.
With nano keys off, Ctrl+W closes the current tab and Ctrl+G opens Go to line.
The Editor keys list (in the More menu) always shows the nano keys, even when they are off.
On a Mac
Section titled “On a Mac”- The Editor keys list names Ctrl on a Mac too. The nano keys use the Control key.
- Ctrl+Shift+A is not set up for select all on a Mac.
For the rest of the app’s keys, see Keyboard shortcuts.
In the workspace, and one editor per window
Section titled “In the workspace, and one editor per window”On a computer (from 4.0.1), the editor opens in the workspace area, where your terminals show, with the sidebar and the session tabs still beside it. It has a tab of its own after the session tabs, for example Editor: 3 files (with a dot while a file has unsaved changes).
- Choose a session tab, a page in the sidebar, or open a new session, and the editor goes behind it with every file as you left it: unsaved text, cursor and scroll position.
- Choose the editor’s tab to bring it back.
- The close button on the editor’s tab closes the editor, and asks first about unsaved changes, like the editor’s own close button.
Locking the app or switching profile still closes the editor, as before. Before 4.0.1 the editor covered the whole window and had a minimize button, with a chip in the status bar to bring it back.
Each window has one editor with tabs. Opening a file on a computer:
- If the file is already open, in this window or a window of its own, its tab comes to the front (and its window too). It never opens twice.
- Otherwise, if the main window has an editor (in front or behind a session), the file opens there as a new tab and the editor comes to the front.
- If only windows of their own have editors, the file opens in the one you used last.
A window of its own
Section titled “A window of its own”On a computer, Open in a separate window in the tab strip moves the current tab into a window of its own, unsaved text included, without asking. Each such window is titled ZestSSH - Editor 2, 3 and so on (the title never names a host or a file), and holds tabs like the main window. Saves and reloads still go through the main window, which holds the connection. If the window cannot open, the editor says Could not open a new window.
To move a tab between windows, right-click it: Move to a new window, Move to the main window, or Move to editor window 2 (and so on). On Windows you can also drag a tab out of its window and drop it on another editor window; dropped anywhere else, it opens in a new window. A tab moves with its unsaved text, encoding, line endings, cursor, scroll position and draft.
In a window of its own:
- The code uses the app’s theme and JetBrains Mono, not the terminal look.
- There is no Save as root.
- Unsaved changes are kept as drafts, as in the main window, and a save checks first whether the file changed on the host.
- Recording mode masks host names and paths here too, and follows every change at once.
- Its nano keys and Minimap choices are passed back to the main window and remembered.
Signing out or switching profile closes every editor window; their unsaved text is dropped, as in the main window, and a draft never moves to another profile.
Platforms
Section titled “Platforms”| Windows, macOS, Linux | Android, iOS (phone layout, narrower than 600 pixels) | |
|---|---|---|
| Open files from SFTP | Yes, from both panes, several at once | Yes, Edit in editor |
| Open files in the editor | Connected hosts and this computer | Connected hosts |
| Tabs from several hosts (12 at most) | Yes | Yes |
| Find and replace, Go to line | Yes | Yes |
| Encodings and line endings | Yes | Yes |
| Drafts kept for 7 days | Yes | Yes |
| Save as root | Yes | Yes |
| Toolbar, status bar and More menu | Yes | No (a bottom bar and a More sheet) |
| Keys row above the keyboard | No | Yes |
| Terminal theme and font switch | Yes | No |
| Minimap | Yes | No |
| nano keys switch | Yes | No |
| Window of its own | Yes | No |
A tablet with a wide window gets the computer layout (toolbar, status bar, More menu with Terminal theme and font and nano keys, no keys row), without the minimap and without a window of its own.
Related
Section titled “Related”- SFTP browser: the SFTP screens the editor opens from.
- SFTP only: hosts that give files and no terminal.
- Keyboard shortcuts: the rest of the app’s keys.
- Data at rest: how the app’s database on your device is encrypted.