Skip to content
Docs · Keyboard shortcuts

Reference

Keyboard shortcuts

The complete default keymap and the k9s preset.

Mod is ⌘ on macOS and Ctrl elsewhere. Single-character shortcuts do not fire while a text field has focus. Rebind or unbind any key in the keymap section of settings. View-specific shortcuts are also documented on each feature's page.

App and workspace

KeysAction
CtrlKToggle the command palette
CtrlShiftPActions palette
CtrlPGo to object
CtrlShiftNNew window
CtrlShiftWClose window
CtrlQQuit
Ctrl,Open settings
CtrlBorCtrlRorCtrlJToggle sidebar / details dock / bottom dock
Ctrl=orCtrl-orCtrl0Zoom in / out / reset
CtrlTorCtrlWNew tab / close tab
CtrlTaborCtrlShiftTabNext / previous tab
Ctrl\orCtrlShift\Split right / down
ShiftEscZoom pane
Ctrl[orCtrl]Back / forward
Ctrl`Show the Terminal panel
CtrlAltOOpen the last port-forward in the browser
CtrlNNew resource (YAML)

Resource lists

KeysAction
JorKorUporDownMove
GGorShiftGFirst / last
EnterorShiftEnterOpen / details
CtrlEnterorAltEnterOpen in new tab / split
SpaceMark a row
CtrlASelect all
/Filter
:Resource palette
CtrlWWide columns
ShiftOGo to reference

Resource actions

KeysAction
DDescribe
EEdit YAML
CtrlDDelete…
CtrlKKill (Pod)
ShiftSScale…
RRollout restart
URollout undo…
PPause or resume a Deployment
CorShiftCCordon / uncordon
ShiftDDrain… (Node) or debug container… (Pod)
TorShiftTTrigger a CronJob / suspend or resume it
YorShiftYCopy name / YAML
LLogs
SorAltSShell / shell in an editor tab
AAttach
FBrowse files
ShiftForAltShiftFPort-forward… / first port
WWeb view
KeysAction
UporDownorJorKMove
RightorLExpand
LeftorHCollapse
EnterorSpaceOpen

Shortcuts for logs, the YAML editor, the terminal, the file browser, alerts, network flows, operators and Helm, cluster updates, Argo CD and the kubeconfig editor are on their pages.

The k9s preset

Set keymap.preset to k9s to layer these on top of the default keymap:

KeysAction
?Open actions
0Show all namespaces
[or-Back
]Forward
EscBack
CtrlUPage up
:Palette (on the sidebar tree)

Something missing or wrong? Open an issue on GitHub.