Zed/open-file
Open a file
Opens a local file or directory in Zed.
Format
zed://file{path}Try it
zed://file/Users/me/project/src/main.rsOpenWhat you supply
{path}Absolute path to the file or directory, starting with a slash.
URL-encoded, and it goes straight after
zed://filewith no separator — the leading slash of the path is the separator.
Note the shape. There is no / between the scheme and the path in the format, because the
path supplies its own: zed://file + /Users/…. Writing zed://file//Users/… gives you a
different, wrong path.
A plain file:///Users/me/project/src/main.rs URL does the same thing and is the more portable
choice, since Zed handles that scheme too.