Clickable links
Open links and files from your terminal
Hold Command and click to open URLs and files, with unsafe links blocked.
How to use it
Hold ⌘ and move over a link to highlight it, then click to open it. A plain click never opens anything.
What opens
| Target | What happens |
|---|---|
http, https, mailto | Opens right away |
| Local files and folders that are not executable | Opens right away |
Other schemes, such as ssh: or ftp:// | Asks first, and names the app it will open in |
| Unsafe targets | Blocked, with the reason |
A link is blocked if it contains invisible characters, has no valid host, points to a file that does not exist, or points to something that can run code.
Good to know
- Programs can print real hyperlinks with hidden targets. Hold ⌘ and hover to see where one goes.
- A path such as
file.swift:12opens the file, but not at that line. - Relative paths may be blocked, so use a full path if one does not open.