Preview basics
Vektor Commander can show a file right inside the pane that holds it. The preview takes the place of the file list until you close it. The other pane stays as it was. Many file types can also be edited and saved there, so you can fix a typo in a README or change a value in a spreadsheet without leaving the window.
Quick Look and the pane preview
There are two ways to look at a file:
- The pane preview is Vektor Commander's own viewer and editor. It opens inside the pane, in the current tab, and works with the keyboard like the rest of the app. This is what F3 opens.
- Quick Look is the macOS preview window. Vektor Commander offers it as a Quick Look button for files its own preview does not recognize, such as audio files. Quick Look is read-only.
Open a preview
- Select a file in a pane.
- Press F3.
You can also choose File ▸ Preview, choose Preview in the file's context menu, or click the Preview button in the pane's toolbar (the button is dimmed until a file is selected).
The preview opens in the pane that holds the file and keeps the keyboard there. If you select several files, the first one is shown. If you press the key on a folder, Vektor Commander shows the folder's information instead.
What the preview shows
The top of the preview shows the file's name, its location, its size, its type and when it was last modified. Next to the name you may see:
- * — the file has changes you have not saved yet.
- Read Only — the file can be viewed but not saved. Hold the pointer over the label to see why.
Below the header is a row of views. Which views you get depends on the file type, for example Preview, Edit, Raw and Info for source code, or Table, Source and Info for a CSV file. Switching views never loses unsaved changes.
| File type | Page |
|---|---|
| Plain text, source code, Markdown, JSON | Text, code and Markdown |
| CSV and TSV | CSV tables |
| Photos, pictures and SVG drawings | Images and SVG |
| Videos, PDF documents, audio | Video, audio and PDF |
| Font files | Fonts |
| Word and Excel documents | Word and Excel |
| ZIP, TAR and other archives | Archives |
Move between files
- Press ↑ ↓ to show the previous or next file of the folder, in the list's order. The list's selection follows, so when you close the preview the last file you looked at is selected. While you type in an editor, the arrow keys move the cursor instead. In a PDF or an archive, they scroll the content.
- In a picture, ← → steps through the pictures in the folder and skips other files.
- The ‹ and › buttons in the header go back and forward through the files you opened in this preview, for example after you followed a link in a Markdown document or opened a file from inside an archive.
- To show a file from elsewhere, click Show files in the pane's toolbar, select the file and press F3 again. The same preview shows the new file.
If the current file has unsaved changes, Vektor Commander asks before it moves on (see Unsaved changes).
Close a preview
Do one of the following:
- Press Esc. If the find bar is open, the first press closes the find bar and the second one closes the preview.
- Press ⌘W. It closes the preview first; the next press closes the tab.
- Click × in the preview's header or next to its name in the pane's toolbar.
- Choose File ▸ Close Preview.
The pane shows its file list again, in the same folder, with the same history and selection.
Files, terminal and preview in one pane
While a pane shows a preview, its toolbar still has the Show files and Show terminal buttons. They switch the pane without closing the preview, and your unsaved changes stay. Click the Preview button to return to it. The toolbar's Reload button reads the file from disk again.
The preview also works with full size panes and Swap Panes, described in Navigating.
Each tab keeps its own preview
A preview belongs to the tab where you opened it. Two tabs can preview different files in the same pane, and each keeps its own file, view, scroll position, unsaved changes, undo history and find text. When you switch back to a tab, its preview is exactly as you left it. A preview in a tab you are not looking at never takes your typing, and a video there does not play.
Edit and save
These types can be edited in the preview:
- plain text, source code, Markdown and JSON — in the Edit (or Markdown) view
- CSV and TSV — in the table or as Source
- SVG drawings — in the Source view
- Word (.docx) and Excel (.xlsx) documents
- pictures — rotate, flip, crop and resize
To save your changes, press ⌘S or choose File ▸ Save. The * next to the name goes away and the file list shows the new size and date.
To keep the original and write your changes to a new file, press ⇧⌘S or choose File ▸ Save As…, then choose a folder and a name. The preview then shows the new file. Text keeps its encoding and line endings.
To throw your changes away, choose File ▸ Revert to Saved.
Unsaved changes
When you close a preview with unsaved changes, move to another file, reload, close the tab or quit Vektor Commander, it asks Save changes to “name”?:
- Save writes the file, then continues.
- Don’t Save discards your changes, then continues.
- Cancel keeps you where you are, with your changes.

Undo and redo
Use Edit ▸ Undo and Edit ▸ Redo (or their usual keys) while you edit. Each preview has its own undo history. It survives switching between views, between the pane's modes and between tabs.
When the file changes elsewhere
If another app changes the file while you preview it:
- Without unsaved changes, the preview reloads the new version on its own.
- With unsaved changes, a notice says the file was changed by another application. When you save, Vektor Commander asks before it replaces the other version: Compare shows your version and the one on disk side by side, Reload discards your changes and loads the other version, Overwrite saves yours anyway, and Cancel does nothing.

If the file is deleted or moved away while you have unsaved changes, a notice says so. Use Save As… to keep your changes.
Read-only files
The header says Read Only and the editing views show a "View only" notice when the file cannot be saved, for example because:
- you do not have permission to change it, or it is on a disk that cannot be written to
- it is inside an archive (use Save As… to keep an edited copy)
- its location does not allow changes, such as an SFTP or SSH server, a Docker container or a plugin's location
- it is a text file larger than 10 MB (see Large text files)
- it is an Office document that contains macros
Remote files
Files on S3, SFTP, SSH, Docker and plugin locations preview the same way as files on your Mac. Vektor Commander reads them into a private temporary folder, never next to your own files, and removes the copy when the preview closes.
Files in an S3 bucket can be edited. Saving uploads the file again. If someone changed the object on the server since you opened it, Vektor Commander does not overwrite it but asks first, with the same Compare, Reload and Overwrite choices. Files on the other remote locations are view only. See Connections for what each location allows.
Find in a preview
Every preview that shows text has the same find bar: text and code, Markdown (formatted and as source), the JSON tree, CSV tables, Word and Excel documents and PDF.

- Press ⌘F. The find bar opens at the top of the preview.
- Type what you are looking for. Every match is highlighted and the bar shows, for example, 3 of 17 (or No results).
- Press Return or ⌘G for the next match, and ⇧⌘G (or Return with Shift held) for the previous one. The search wraps around at the end.
- Press Esc to close the bar.
Matching ignores upper and lower case and accents. To search for the text you have selected in an editor, press ⌘E.
Replace
When the view you are looking at can be edited, the find bar has a Show Replace arrow at its left. Click it, type the new text in Replace with…, then click Replace for the current match or Replace All for every match. A whole Replace All is undone in one step with ⌘Z, even while the find bar still has the keyboard.
Each tab keeps its own find text. Pictures, fonts, videos and archive listings have no find bar; an archive has its own search field instead.
Info
Choose Info in the row of views to see the file's facts: Name, Location, Type, Size, Created, Modified, Permissions and whether it is Writable (with the reason when it is not). Text files also show their Language, Encoding and Line Endings. Other types add their own details, such as the bucket and key of an S3 object or the dimensions of a drawing.
Open the file in another app
The Open with… menu in the preview's header lists the apps that can open the file, plus Other… to choose any app. The preview stays open. If the file is on a remote location or inside an archive, the app gets a temporary copy, and changes made there are not saved back.
To open a file in its usual app directly from the file list, select it and press F4. This is the same as opening it with ↩. For a file on a remote location, Vektor Commander first downloads a copy and tells you that changes to it are not uploaded back. On a folder, the key only reminds you to press Return to open it.
Some types also have a More actions (…) menu in the header, with Save As…, Revert to Saved, Get Info and Copy Path.
Files the preview does not recognize
A file that is not text and is not one of the supported types shows a card instead of unreadable characters: its name, kind and size, and the buttons Quick Look, Get Info and Reveal in File List. Open with… is in the header.

Large text files
A text file larger than 10 MB opens read-only. Its beginning shows at once, and more is loaded as you scroll. The find bar searches the part that has loaded so far and says how much that is.



