Editor, terminal and opening files
Opening a file with Enter
Enter (or a double click) on a file on your disk opens it the way a double click in the Finder or Explorer does: in the app the system has for it. Programs run, documents open in their apps. Commander hands the file over and adds nothing to it.
- A file no app takes says so: Could not open notes.xyz: no application opens it.
- A file inside an archive or on a server doesn’t open with Enter, on purpose; copy it out first, or look at it with F3. A picture is the exception: it opens in the viewer.
- An archive always opens as a folder, whatever app the system has for it.
Rules: your own app for a kind of file
A rule names the app that opens certain files with Enter, in place of the system’s choice. The system’s own settings are never changed.
Rules are made in a file’s Detail ⌘I, on the Execute page. It lists the rules that could apply to this file, and each has a menu of apps:
- This file: only this one.
- .jpg in Photos: files with this extension in this folder.
- All .jpg: files with this extension anywhere.
- All pictures: every picture, with the Viewer as one of the choices. It is the viewer to start with.
Each menu offers the system’s default, the apps the system suggests, and Other application… to pick any app. A choice is saved at once, and the row that decides is highlighted.
The most specific rule wins, whatever order they were made in: a rule for one file beats a rule for a folder, which beats a rule for an extension everywhere. All pictures is asked last.
Preferences ▸ Execution lists every rule in the order they are consulted, with a menu to change the app and a × to drop the rule. Reset Execution to defaults removes them all.
Open With
The first entry of a file’s right-click menu, Open With, lists the apps the system offers for it, with Other… at the end. The app you pick opens every selected file, this once; no rule is made.
Open in Text Editor
Open in Text Editor F4 opens the file under the cursor in your text editor.
- Which editor: Preferences ▸ Execution ▸ Text editor. On a Mac it lists the text editors you have (TextEdit, VS Code, Zed, Xcode and the like), on Linux the apps that take text, and Other application… picks any app; to start with, it is the system’s own, Notepad on Windows.
- A file that looks binary, such as a picture, asks first: “photo.jpg” looks like a binary file. Open it in TextEdit anyway? Preferences ▸ Confirmations ▸ Confirm editing a binary file switches the question off.
- One file at a time, on your disk. A file inside an archive or on a server is refused: Only a file on this computer opens in a text editor.
To start a new text file: New File ⇧F4, type the name, then F4 on it.
Open Terminal Here
Open Terminal Here F9, or the terminal button at the right end of the status bar, opens a terminal in the folder the panel shows. The cursor and the selection don’t matter. From search results, it opens in the folder you searched.
| System | Which terminal |
|---|---|
| Mac | Terminal, or iTerm2, Ghostty or Warp if you have them (Preferences ▸ Execution ▸ Terminal) |
| Windows | Windows Terminal with its default shell, Command Prompt, Windows PowerShell or PowerShell 7 |
| Linux | The system’s terminal (x-terminal-emulator) |
On Windows, Open Terminal Here as Administrator ⇧F9, or a Shift-click on the terminal button, opens it with administrator rights, after the system’s question. Commander itself never runs as administrator. On a Mac and Linux, use sudo in the terminal.
A terminal opens only in a folder on this computer: not in an archive, on a server or on Places.