Skip to content
Keyboard shortcuts

Keyboard shortcuts

What it is

In the detail view of any service, in a runbook’s view, and in the Connect, Tunnel, VPN, AWS, Secrets, Runbooks and Help panels, h or ? opens a pop-up in the middle of the screen that lists every key that works there and what it does. Esc closes it.

The help line under the detail box only names the keys (r refresh, a auto-reconnect) and loses its end on a narrow terminal. The pop-up is where to look up what a key really does before pressing it on a live connection.

It always fits the terminal. The help the four panels had before was a box as tall as its text, configuration examples included, and on most terminals its top was cut off; that text is now in the Help panel, which scrolls.

╭──────────────────────────────────────────────────────────────────────────────────────╮
│  rds  orders-int  Status: ● CONNECTED  Local port: 50111  Auto-reconnect: ●          │
│ ──────────────────────────────────────────────────────────────────────────────────── │
│  psql "host=local╭──────────────────────────────────────────────────────╮            │
│ ─────────────────│  Shortcuts — orders-int                              │─────────── │
│─ Logs │ 1 psql ● │                                                      │            │
│ ─────────────────│  Connection                                          │─────────── │
│Starting session w│    c      Connect: open the tunnel, mint a token     │            │
│Port 50111 opened │    d      Disconnect: close tunnel and terminals     │            │
│Waiting for connec│    a      SSM port-forward auto-reconnect on/off     │            │
│IAM token generate│    a reopens it after a drop (SSM idle timeout).     │            │
│                  │                                                      │            │
│                  │  Token                                               │            │
│                  │    r      Mint a new token now                       │            │
│                  │    p      Copy the token                             │            │
│                  │    Renewed while connected, auto-reconnect or not.   │            │
│                  │                                                      │            │
│                  │  Clipboard                                           │            │
│                  │    y      Copy the connect command                   │            │
│                  │    Y      Copy it with the token inlined             │            │
│                  │                                                      │            │
│                  │  Terminal tabs                                       │            │
│                  │    t      New tab: the client, already logged in     │            │
│                  │    ← →    Previous / next tab (or tab, shift+tab)    │            │
│                  │    1-9    Jump to a terminal and type into it        │            │
│                  │    enter  Type into the selected tab, or restart it  │            │
│                  │    n      Rename the selected tab                    │            │
│                  │    x      Close the selected tab                     │            │
│                  │    While typing, esc or ctrl+t returns to den.       │            │
│                  │                                                      │            │
│                  │  View                                                │            │
│                  │    ↑ ↓    Scroll the logs (pgup, pgdn by page)       │            │
│                  │    h ?    Open or close this help                    │            │
│                  │    esc    Back to the list                           │            │
│                  │                                                      │            │
│                  │  esc: close                                          │            │
│                  ╰──────────────────────────────────────────────────────╯            │
╰──────────────────────────────────────────────────────────────────────────────────────╯
  h: help  c: connect  d: disconnect  t: terminal  r: refresh  a: auto-reconnect  …

What is behind the pop-up stays on screen, dimmed, and keeps updating: the logs, the status and the token bar are still live.

Configuration

None. There is no den.yaml key for this feature: every service has it.

Prerequisites

None: no tool, no IAM permission, no environment variable. The service does not have to be connected.

Usage

  1. Open the detail view of a service (Enter on it in Connect, Tunnel or VPN), or focus the Connect, Tunnel, VPN, AWS, Secrets or Runbooks panel.
  2. Press h or ?.
  3. Read, then Esc (or h, ? or q). A second Esc goes back as it did before: out of the detail view, or to the menu.
KeyWhile the pop-up is open
Esc, h, ?, qClose it
↑ ↓ / k jScroll it, when the terminal is too short for it
ctrl+cQuit den, where it would without the pop-up
anything elseNothing

No other key acts while it is open. c, d, r and t are one keypress from changing a live connection, so over the pop-up they do nothing; close it first.

In the detail view it lists only what this service has. The groups follow the service:

GroupKeysShown for
Connectionc, devery service, worded for its type (tunnel, VPN login, SSO login, docker compose)
a auto-reconnectservices whose tunnel den reopens (every SSM-tunnelled one)
r re-read the cached SSO tokenAWS SSO sessions
Tokenr mint a new one, p copy itservices holding a token (RDS, Redis/MemoryDB with IAM, Redshift)
Runtime togglesr reconnect, m monitor, H health checktunnels; a VPN has r and H
Clipboardy copy the commandevery service but a VPN
Y copy it with the token inlinedservices whose command can carry it
Terminal tabst, ← →, 1-9, Enter, n, xservices with terminal tabs: every tunnelled data store
View↑ ↓, h ?, Escevery service
denM the mouse to the terminalevery service

r means three different things depending on the service, which is the main reason the pop-up exists: a new token for RDS, the reconnect toggle for a tunnel or a VPN, and a re-read of the token cache for an SSO session.

a is auto-reconnect, not token refresh. The token needs no toggle: den renews it by itself about two minutes before it expires. a decides whether the tunnel is reopened after it drops.

It fits the terminal. On a terminal too short for one column the groups go side by side, which needs about 110 columns. When that does not fit either, the pop-up scrolls and its last line reads ↑↓: scroll esc: close.

In a terminal tab the keys are the client’s. While a tab has the keyboard (the help line reads TERMINAL), h and ? are typed into psql like any other key. Esc or ctrl+t first, then h. The same holds for a filter, a password prompt and a runbook’s parameter form: there h is text.

Tab stays in a pop-up. While a Runbooks pop-up is open (a form, a question, the sources), Tab does nothing: it neither leaves for the menu nor submits the form. The one exception is the new-runbook form with two or more agents, where Tab (or ↓ from the request’s last row) moves from the request to the Agent row; on the name it does nothing. Enter and shift+tab move between a form’s fields.

In a panel it lists the panel’s keys, then the ones every panel has:

PanelGroups
ConnectServices (Enter, /, c, d, y), Credential and tunnel (r, a)
TunnelTunnels (c, d, Enter, y), Runtime toggles (r, m, H, v)
VPNVPN (c, d, Enter), Runtime toggles (r, H)
AWSSSO sessions (Enter / c, d, o, /), AWS files (e, E)
SecretsSecrets (Enter, /, Esc), Values (r, a, t, y, e), Access (L, l), Git (f, u)
RunbooksRunbooks (Enter, r, x, n, m, D, s, /, w)
HelpTopics (↑ ↓, Enter, /, Esc), or Topic (scroll, /, n N, Esc) in an open one
all sevenden (Tab, R, M, h ?, Esc, q)

A runbook’s view lists Runbook (r, x, y, o, t, e, m, D), Tabs, View and den (M).

The pop-up is only about keys. What each feature does and how its part of den.yaml is written is in the Help panel (? from the menu), one topic per feature with examples, and in each feature’s own docs: tunnel, vpn, secrets, runbooks and the rest.

The Updates panel keeps its own h help. In the Config and Logs panels, which have no pop-up, h goes back to the menu.

Moving around

The keys that work in every panel, and those of the Connect panel, which the pop-up describes in context. Each other panel’s keys are in its own page (AWS, Secrets, Runbooks, Updates), and the terminal tabs’ in Terminal tabs.

KeyAction
↑ / kMove up
↓ / jMove down
TabToggle focus between the left menu and the right panel
→ / l / EnterFocus the right panel
← / EscFocus the left menu (h too, in a panel without a shortcuts pop-up)
LJump to the Logs panel
?Jump to the Help panel: one topic per feature; / searches them all
RReload the config file, checked first; see Editing den.yaml
MGive the mouse to the terminal, whose own drag-to-select then works; M again gives it back to den (also in the detail and runbook views; text in a search box, a terminal tab or a form)
q / Ctrl+CQuit, which stops every tunnel

In the Connect panel:

KeyAction
cConnect the selected service (asks for confirmation for production)
dDisconnect it
rRefresh the IAM token or temporary credentials of a connected service
aToggle auto-reconnect of the SSM port-forward: reopen it after a drop, e.g. the SSM idle timeout (any SSM-tunnelled service). Token refresh does not depend on it
yCopy the connect command (never with a credential: Y in the detail view)
/Filter services by name, type or environment (type to search, Esc to clear)
EnterOpen the detail view
h / ?The shortcuts pop-up

In the detail view, y copies the connect command, Y the command with the password or token inlined, and p the raw token.

Searching. A match looks the same wherever / finds it: lit up in yellow, as you type. A panel’s filtered list (Connect, AWS, Secrets, Runbooks, Config, the Help topics) lights it up in the columns the filter reads. A Help topic, the changelog and a run’s log light up every match, the one the view is on brighter. Text the filter did not read stays as it was, and so does a masked secret.

Mouse

den reads clicks, drags and the wheel in every panel and view, and the keys keep working as before. A click selects, a double-click does what Enter does, a drag selects text and copies it, the wheel is ↑ or ↓ sent to what is under the pointer, and a click on a link opens it in the browser.

WhereClickDouble-clickWheel
The menuShow the panel; the menu keeps the focusOpen the panelNothing
A panel’s rowsFocus the panel and select the rowWhat Enter does on the rowMove through the panel without focusing it
A view’s tabs, ‹ ›Show the tab; leaves a terminal typed intoOn a terminal: type into it, or restart it—
A terminal’s screenType into it (not into an exited one)—↑ ↓ to its program while you type into it
History, FilesPick a run or a fileThe run’s whole log, or the fileMove through the runs or the tree
Run, About, a file shown, the logs——Scroll
The shortcuts pop-upNothingNothingScroll it
A link, anywhere outside a pop-upOpen it in the browserOpen it once—
Drag: any text, outside a pop-upPress and drag: select it; let go: copy it—Clears the selection
  • Selecting text. A drag selects in reverse video, and letting go copies the text, with copied N lines in the status bar; a key, a click or the wheel clears it. The selection stays in what it started in (the menu, the panel, the inside of a view’s box, or one bar), so no border or menu text comes with it. It copies what is on screen: a line cut with … stays cut, a wrapped line comes out as several lines, and a drag does not scroll. For the terminal’s own selection, press M (the status bar then ends with M: mouse to den; M again gives the mouse back to den), or hold the terminal’s modifier while you drag: Option in iTerm2, Fn in Terminal.app (or ⌘R, View → Allow Mouse Reporting), Shift in Ghostty, kitty, WezTerm, Alacritty and Windows Terminal.
  • Links. Every http(s) address den shows is underlined in blue and opens in the default browser with a click: in a panel, the logs, a Help topic, the Updates panel, a bar, a runbook’s output or a terminal tab, whether den wrote it or a program printed it, plain or as an OSC 8 link. It opens when the button comes up, so a drag over it selects and copies it instead. Only http and https open: a program’s link to a file or an app is left to the terminal, so a click never starts an app. An address cut with … is not a link, and one wrapped onto a second line opens only the part on its first line. With M, the terminal handles links itself (⌘-click or Ctrl-click in most).
  • The hand. With the mouse over a link the pointer turns into a hand, in a terminal that lets den set it (OSC 22) while den has the mouse: Ghostty, kitty and foot. Alacritty, GNOME Terminal and Windows Terminal cannot, and keep their own pointer. iTerm2 3.6 and earlier keep theirs, an I-beam in a circle, as long as a program has the mouse; its development version shows the hand. In iTerm2, hold ⌘ over a link for its own hand, and ⌘-click to open the link. Terminals name the shapes differently (CSS names in Ghostty, kitty and foot, X11 ones in iTerm2 and xterm), so den sends both. The pointer changes as the mouse moves, and a key gives the terminal its own pointer back until the next move, so a program den starts, or the shell after it, never gets the hand.
  • Keyboard-only. Pop-ups, forms and y/n questions take no click, no drag and no wheel, so a stray click never answers one; hint lines and the bars at the bottom are not buttons, but for a link in them.
  • Terminal tabs. A click hands a tab the keyboard, but the program in it never sees the mouse: vim or less get the wheel as arrow keys, and no clicks.

The Help panel has the same as a topic: Mouse, under Getting started.

Searching the changelog

The changelog (s in the Updates panel) is a long document, and searches like a Help topic does:

KeyWhat it does
/Start a search; the view jumps to the first match as you type
EnterStop typing and keep the matches
n / NNext / previous match, wrapping around
EscWhile typing: cancel and scroll back. After: clear the search
BackspaceDelete a letter; on an empty search, close it

The search ignores case and starts below where you are reading. Every match lights up in yellow, those on the current match’s line brighter, and the hint under the box reads 2/5 for the second of five. While you type, every key is a letter of the search: q, h, R and s do not quit, leave, reload or close the changelog. A second Esc, with no search on, closes the changelog as before. The Help panel’s own search, across every topic, is in docs/help-panel.

Last updated on