~/sot/docs/keys
cat keys.md
~/sotcat keys.md

Keys

? in sot shows the keys for the focused panel. Every binding can be remapped in the config.

Everyday keys

Key Action
1-6 Switch view
Tab / Shift+Tab Next / previous panel
↑ ↓ or k j Move
PgUp PgDn (Ctrl+U Ctrl+D), Home End (g G) Page, first, last
Enter Open details, or drill down from the overview
Esc Close, clear the filter, or go back
/ Filter
o Sort: in process tables pick a column with ← → and flip with Enter; in port and dev lists o cycles the column and s flips
x / t Kill / terminate the selected process (asks first)
n Show or hide the I/O and connection columns
+ / - Overview zoom
r Refresh
Ctrl+P Command palette
q Quit

The Bench and Clean views have their own keys; see sot bench and sot clean.

Remap a key

Every binding has an id. Put the ones you want to change under [keymap] in the config file, mapping the id to the new keys:

toml
[keymap]
"sot.process.kill" = "ctrl+k"
"sot.view.processes" = "p"

Every binding

sot --keys prints every binding with its id. This is its output for sot 7.0.0:

~/sotsot --keys
IdKeysAction
sot.backEscBack
sot.bench.exporteExport
sot.bench.longer+ =+1s
sot.bench.runEnterRun
sot.bench.shorter--1s
sot.clean.allaAll/none
sot.clean.dry_rundDry run
sot.clean.forcefForce
sot.clean.privacypPrivacy
sot.clean.rescanrRescan
sot.clean.runcClean
sot.clean.toggleSpaceToggle
sot.confirm.non EscCancel
sot.confirm.yesyConfirm
sot.detailsEnterDetails
sot.filter/Filter
sot.filter.clearEscClear filter
sot.help?Help
sot.list.down↓ jDown
sot.list.firstHome gFirst
sot.list.lastEnd GLast
sot.list.page_downPgDn Ctrl+dPage down
sot.list.page_upPgUp Ctrl+uPage up
sot.list.up↑ kUp
sot.openEnterOpen
sot.picker.cancelEscCancel
sot.process.killxKill
sot.process.networknNet columns
sot.process.terminatetTerminate
sot.quitqQuit
sot.refreshrRefresh
sot.sort.cycleoSort
sot.sort.doneEsc oDone
sot.sort.modeoSort
sot.sort.next→ lNext column
sot.sort.prev← hPrev column
sot.sort.reversesDirection
sot.sort.toggleEnterToggle
sot.view.bench5Bench
sot.view.clean6Clean
sot.view.disks3Disks
sot.view.overview1Overview
sot.view.processes2Processes
sot.view.system4System
sot.zoom.in+ =Zoom in
sot.zoom.out-Zoom out
search
↑ ↓ move↵ openEsc close
keys

The same keys as sot, where they make sense.

/ Ctrl+KSearch, jump to a page or switch theme
1-6Switch section (the windows in the status bar)
[ ]Previous / next page
j kScroll down / up
Ctrl+D Ctrl+UHalf a page down / up
g GTop / bottom
tSwitch between light and dark
?Show these keys
EscClose