File Actions
File actions allow you to perform various tasks with the currently selected file(s) in a project. You can access them in the File ⟩ Actions menu, the + button at the foot of the sidebar, or by right clicking on any file.
The specific file actions available depend on what you have selected, but you will typically have access to the following:
- New File: if you have a folder selected, create a new file within that folder. If a file is selected, create a new file in the same folder.
- New Folder: identical to New File, but creates a folder.
- New From Template…: create files or folders from a template.
- Open in Workspace: open the file and keep it in the Workspace.
- Open With: open the file in another app. Which app is used by default, along with which apps are shown in the menu, depends on the file associations you have set up in the Finder.
- Publish To: immediately upload the selected files to one of your project's servers.
- Show Difference: with two files selected, compare them.
- Star / Unstar: for folders; star the folders you use most, to find them with the filter.
- Show in Finder: reveal the selected file or folder in the Finder.
- Show in Project Files (shift command J): for Workspace items; reveal the selected file in the project's files.
- Rename: rename the selected file or folder.
- Duplicate: duplicate the selected file(s) or folder(s).
- Move to Trash… (option command delete): move the selected items to the Trash.
- Close Tab, Close Other Tabs and Move Tab to New Window: for files that are open.
- Open in Terminal / Open Parent in Terminal: if you have a folder selected, a new Terminal window will open with the current working directory set to the selected folder. If a file is selected, the Terminal window will use the file's parent folder.
- Execute in Terminal: only available for a single file; a new Terminal window will open and run the file.
- Refresh: read the folder again, if something has changed it behind Espresso's back.