Skip to content
flow

FeaturesGo links

Go links

Short go/ names in the command palette that open web pages, files, folders and apps, with arguments, extract patterns and fallbacks.

View as Markdown
On this page

Go links are your own catalog of short names for places you open often. Type go/pr/241 in the command palette and Flow opens https://github.com/acme/app/pull/241. A go link can point at a web page, a local file or folder, or a macOS app, take arguments, and pull pieces out of a pasted URL. The catalog is one JSON file you can edit, import and export.

Go links are separate from the link router, which decides where web links open. They share two things: the same extract-pattern syntax, and a go link's web page opens the way Flow opens any web link (links.open_in, and the link router when it's on).

  1. Open the command palette (⇧⌘P).
  2. Type go/ followed by the name, for example go/docs. Typing go and pressing ⇥ does the same, and so does the palette's Go links row or the Go links action.
  3. If the link takes arguments, type them after a slash: go/pr/241.
  4. Press ↩ to open it, or ⇧↩ (also ⌘↩) for the alternate way (see Destinations).

You can also type a go link's name straight into the palette's search. Matching links show under Go links, and a link named exactly what you typed is the top hit. On a link that needs arguments, ↩, ⇥ or / drills into go links with its name filled in, ready for the argument.

Names match loosely. A name within a few typos of what you typed is listed under Close matches, closest first, and highlighted, so go/note/241 with a link named notes highlights go/notes and ↩ opens it with 241. An empty query lists the whole catalog, most visited first.

  1. In go links, type a name that doesn't exist yet and pick Create go/NAME, or press ⌘N. The Create go link action opens the same form.
  2. Fill in the form:
    • Short link: lowercase letters, digits and dashes, starting with a letter or digit (spaces you type become dashes).
    • Destination: a URL, a path or an app, optionally with placeholders.
    • Extract (optional): a regular expression that pulls arguments out of what you type (see Extract patterns).
    • Encoding: how arguments are encoded into a URL (shown only for destinations that encode).
    • Description (optional).
    • Try it: type sample arguments and see what the link resolves to.
  3. Press ↩ to save.

Errors show under their field after you try to save: "Lowercase letters, numbers and dashes only", "go/NAME already exists", or "Use a URL (https://…), a path (/… or ~/…), or an app (app:Name)".

To change a link, highlight it and press ⌘E. To delete it, press ⌃X.

Destinations

Flow reads the kind of destination from its text:

KindDestination↩⇧↩
Webhttp://… or https://…, no spacesWhere links.open_in says (your browser by default)The other one (a Flow web tab, or the browser)
File or folderAn absolute path (/…), ~ or ~/…, or a file:// URLA Files tab in the current sessionIts default app
Appapp:Name (for example app:Slack), or a path ending in .appLaunches the appLaunches the app
  • With web tabs off, a web link always opens in your browser. See Web tabs.
  • A file or folder link opens with its default app when there is no session to hold a Files tab.
  • If a file, folder or .app path doesn't exist, the palette stays open and says so in its footer.
  • Each open counts as a visit, which ranks the link higher.

Arguments

A destination is a template. Its placeholders take the arguments you type after the name, split on /:

PlaceholderValue
{1}, {2}…The first, second… argument (empty when missing; {0} never fills)
{*}Every argument, joined by /

So with destination https://github.com/{1}/{2}/issues, go/gh/acme/app opens https://github.com/acme/app/issues. A link with placeholders refuses to open until you type an argument.

For a URL, the link's Encoding decides how arguments are encoded. Paths and app names take arguments as typed.

EncodingWhat it does
DefaultPercent-encodes spaces, control characters and non-ASCII; keeps every ASCII symbol (/ ? # & = %)
PathEncodes each path segment strictly (keeps only A-Z a-z 0-9 - . _ ~) and keeps every /
QueryEncodes the whole value strictly, / included (%2F); a space is %20
FormLike Query, but a space is +
RawEncodes nothing

Extract patterns

A link with an Extract pattern takes the text after go/NAME/ whole, as typed (not split on /), runs the regular expression on it, and fills the destination from its capture groups instead of typed arguments:

  • {1}, {2}… are the numbered groups, and {*} is all of them joined by /.
  • {name} is a named group, written (?<name>…) or (?P<name>…). Without an extract pattern, {name} is plain text.
  • Captured text is encoded by the link's encoding, like typed arguments.

For example, a link pr with:

FieldValue
Extractgithub\.com/(?<repo>[^/]+/[^/]+)/pull/(?<n>\d+)
Destinationhttps://app.graphite.dev/github/pr/{repo}/{n}

opens go/pr/https://github.com/acme/widgets/pull/241 as https://app.graphite.dev/github/pr/acme/widgets/241. With nothing typed, or text the pattern doesn't match, ↩ is refused and the footer says why. The link router's targets use the same syntax; see Extract parts of a link.

A fallback catches names that aren't in your catalog. Highlight a link with a placeholder or an extract pattern, press ⌘K, and pick Use as fallback (Stop using as fallback undoes it).

When the name you type matches no link, each fallback is listed as go/FALLBACK/QUERY and opens with your whole query as its arguments. So a fallback l with destination http://go/link/{*} opens go/testtjnsd/foo as http://go/link/testtjnsd/foo. A fallback with an extract pattern runs it on the whole query and is offered only while it matches.

When you type in the command palette, its Search rows offer your web search engine and then the web go links that take exactly one argument, most visited first, with your whole query as the argument. A link with an extract pattern is offered only while the pattern matches what you typed.

KeyDoes
↩Open the highlighted link (or create one on the Create row)
⇧↩ or ⌘↩Open it the alternate way
⇥Drill into the highlighted link, ready for an argument
⌘CCopy the short link (go/NAME/…)
⇧⌘CCopy the resolved URL or path
⌘EEdit the link
⌘NNew go link
⌃XDelete the link
⌘KActions: everything above, plus Import catalog…, Export catalog…, Use as fallback
⎋Clear the query, then go back a level

The Go links (keyboard.go_links) and Create go link (keyboard.new_go_link) actions are unbound by default. Bind them in Settings › Keyboard; see Keybindings.

The catalog file

The catalog is ~/.flow/golinks.json, one file for your whole Mac. It's a JSON array of links:

json
[
  {
    "name": "pr",
    "url": "https://github.com/acme/app/pull/{1}",
    "desc": "A pull request by number",
    "visits": 0,
    "created": "2026-11-23"
  },
  {
    "name": "l",
    "url": "http://go/link/{*}",
    "desc": "Catch-all for unknown names",
    "visits": 3,
    "created": "2026-11-20",
    "fallback": true,
    "encoding": "path"
  }
]
  • url holds the destination of any kind. fallback, encoding (default, path, query, form or raw) and extract are written only when set.
  • Flow reads the file each time you open go links, so a hand edit shows up the next time.
  • A file that isn't valid JSON reads as an empty catalog, and an entry with a bad name, a repeated name or a destination of no kind is skipped. Before Flow saves over such a file, it copies it to golinks.json.bak, so nothing you wrote is lost.
  • Export catalog… (⌘K) writes ~/Downloads/golinks.json in this format.
  • Import catalog… (⌘K) merges a file into your catalog: a JSON array like the one above, a JSON object of {"name": "url"} pairs, or CSV rows of name,url[,description]. Existing names are updated, and the footer says how many links were added and updated.

Limits

  • The form never checks that a file, folder or app exists. Opening a link checks a path; an app:Name link is handed to macOS as is.
  • A fallback needs a placeholder or an extract pattern, so the query has somewhere to go.
Sources

Written from these files in the Flow app repo

  • src/golinks.rs
  • src/link_extract.rs
  • src/command.rs
  • src/command_ui.rs
  • src/launcher.rs
  • src/main.rs
  • src/pages.rs
  • src/link_open.rs
  • src/link_router.rs