Skip to content
flow

WorkspaceWeb tabs

Web tabs

Open web pages as tabs beside your terminals: the address bar (⌘L), Site and Tools popovers, favicons, find and zoom, and where links open.

View as Markdown
On this page

A web tab is a real web page (the system's WebKit, as in Safari) living in a tile next to your terminals: docs, a local dev server, a dashboard. It has its own toolbar with an address bar, and it can be split, dragged, popped out and restored like any other tab.

Note: Web tabs are an experiment. Turn them on in Settings › Experiments › Web tabs (features.web_tabs, default off). While it is off nothing creates a new web tab and links open in your browser; web tabs you already have keep working.

Open a web tab

HowWhat happens
⌥⌘B New webview…A prompt asks for a URL (or a search) and opens it in the focused tile
⌥⇧⌘B New webview from command…A prompt asks for a command. Flow runs it in a login shell from the session's directory and opens the first line it prints as the URL (handy for a dev server that prints its address).
The New tab launcher (⌘T)Type a URL (https://…, localhost:3000, example.com), or pick the Web tile (⌘2). Recent pages for this repository are listed there too.
A linkClicking a link opens a web tab when Open links in is set to Flow tab, or with ⇧ held when it is set to Browser (see below)

Links a page opens in a new window (target=_blank, window.open) stay in the same tab.

The toolbar

Each web tab has a toolbar above the page:

  • Back, Forward and Reload.
  • The address pill, centred. At rest it shows the page's address without https://. Its lock or info glyph at the left opens the Site popover.
  • The More button at the right, which opens the Tools popover.

Show / hide title bar (⌥⌘T) hides or shows the toolbar of the focused web tab.

Use the address bar

  1. Press ⌘L (Focus address bar) or click the address pill. The whole address is selected.
  2. Type a URL, a host, or anything else, and press ↩:
    • text with a scheme must be http or https;
    • text that looks like a host (localhost, an IP address, or a dotted name such as docs.rs, with an optional port and path) gets https://;
    • anything else is a web search.
  3. Press ⎋ to cancel. Any ⌘ shortcut that the field does not use ends the edit and does its usual job (⌘W, ⌘T, ⇧⌘P…).

The search engine is the webview.search_url setting, a URL with %s where the query goes (default https://www.google.com/search?q=%s):

sh
flow-cli settings set webview.search_url "https://duckduckgo.com/?q=%s"

The Site popover

Click the lock / info glyph or press ⌃⌘I (Site information): the connection, rows for cookies, permissions and the certificate (shown but not available yet), and Clear browsing data….

The Tools popover

Click More:

ToolShortcut
Find in page⌘F
Zoom (a stepper with the current percentage; click it to reset to 100%)
Open in default browser⇧⌘O
Copy link⇧⌘C
Print…⌃⌘P
Developer tools (Web Inspector)⌥⌘I
Clear browsing data…

The shortcuts work whenever a web tab is the focused tab. Popovers close on ⎋, on a click anywhere else, or when you switch tab, session or page.

Favicons and the tab strip

Once a page's icon loads, the tab shows it on a card coloured to match (with tab icons turned off, as a round favicon, and a globe until it loads). See Tab icons.

Settings › General › Tabs › Open links in (links.open_in) decides where a web link you click in Flow opens:

ValueLabelA click opensA ⇧-click opens
browser (default)BrowserYour default browserA Flow web tab
appFlow tabA Flow web tabYour default browser

⇧ is the one modifier that flips it:

  • In a terminal, ⌘-click a link to open it (a plain click also works in the focused pane when the program there is not using the mouse); ⌘⇧-click for the other target.
  • On a pull request page, ⇧-click.
  • On a go link in the palette, ⇧↩.

With web tabs off, links always open in your browser. To route links from every app by rules (Flow tabs, other browsers, a chooser), see the Link router.

Privacy and data

  • Every web tab identifies itself as Safari and shares one website data store: cookies, cache and storage are common to all web tabs. Clear browsing data… empties it.
  • Flow records the pages you visit (per repository) so the New tab launcher can list recent pages.
  • Web tabs are saved with their session and come back when Flow relaunches or the session is reopened.

Where web tabs work

  • On the Sessions page, in any tile.
  • On the Dashboard, in the side panel (cards never show a web page).
  • In a pop-out window.
Sources

Written from these files in the Flow app repo

  • src/webview.rs
  • src/webview_ui.rs
  • src/webview_popover_window.rs
  • src/link_open.rs
  • src/features.rs
  • src/pages.rs
  • src/new_tab.rs
  • src/persist.rs
  • src/tile_ui.rs
  • src/main.rs
  • src/dashboard_ui.rs
  • src/settings_catalog.rs