Skip to content
Docs · Documentation

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+orCtrl-orCtrl0Zoom in / out / reset
CtrlTorCtrlWNew tab / close tab
CtrlTaborCtrlShiftTaborCtrlShift]orCtrlShift[Next / 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)
Ctrl?Show or hide the agent panel
CtrlCCopy selected text or the selected rows

Resource lists

KeysAction
JorKorUporDownMove
GGorShiftGorHomeorEndFirst / last
CtrlForCtrlBorPageDownorPageUpPage down / up
ShiftJorShiftKorShiftDownorShiftUpExtend the selection
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
ShiftAAsk the agent about the selection (also in log views)
KeysAction
UporDownorJorKMove
RightorLExpand
LeftorHCollapse
EnterorSpaceOpen

Namespace switcher

KeysAction
CtrlSFavorite or unfavorite the highlighted namespace

Views with their own keys

Some views bind plain keys while they have focus. Like the others, they do not fire while a text field is focused.

KeysAction
/Focus the filter in Applications, Security Center and Flux views, and the search in the Helm Charts tab
LApplications: open the logs of the selected application
1or2or3Security Center: Images / Resources / Roles. Available in the release after 0.6.0.
RorICost: refresh / include idle cost. Available in the release after 0.6.0.
JorKMove in the Helm Charts tab

There is no key for the local terminal. Use Terminal: Open Local Shell for This Cluster or List: Export CSV from the palette.

Shortcuts for logs, the YAML editor, the terminal, the file browser, alerts, network flows, operators, 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.