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.
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
| How | What 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 link | Clicking 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
- Press
⌘L(Focus address bar) or click the address pill. The whole address is selected. - Type a URL, a host, or anything else, and press
↩:- text with a scheme must be
httporhttps; - text that looks like a host (
localhost, an IP address, or a dotted name such asdocs.rs, with an optional port and path) getshttps://; - anything else is a web search.
- text with a scheme must be
- 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):
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:
| Tool | Shortcut |
|---|---|
| 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.
Choose where links open
Settings › General › Tabs › Open links in (links.open_in) decides where a web link you click in Flow opens:
| Value | Label | A click opens | A ⇧-click opens |
|---|---|---|---|
browser (default) | Browser | Your default browser | A Flow web tab |
app | Flow tab | A Flow web tab | Your 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
Sources
Written from these files in the Flow app repo
src/webview.rssrc/webview_ui.rssrc/webview_popover_window.rssrc/link_open.rssrc/features.rssrc/pages.rssrc/new_tab.rssrc/persist.rssrc/tile_ui.rssrc/main.rssrc/dashboard_ui.rssrc/settings_catalog.rs