+
+
+ Command
+ Shortcut
+ Default
+ Scope
+ State
+
+
+ {grouped.length === 0 && visibleReference.length === 0 && (
+
No shortcuts match “{query}”.
+ )}
+ {grouped.map(({ category, rows: groupRows }) => (
+
+
+ {CATEGORY_LABELS[category]}
+
+ {groupRows.map((row) => {
+ const statusId = `shortcut-status-${row.id}`;
+ const conflictText = row.conflicts.length > 0
+ ? `${row.effectiveChord ? formatKeyDisplay(row.effectiveChord) : 'This key'} is also bound to ${row.conflicts.map((id) => labelForId(id, sources) + whereToEdit(id)).join(', ')}`
+ : '';
+ return (
+
+
+
{row.label}
+ {row.origin === 'snippet' && (
+
Snippet — edit in Terminal snippets below
+ )}
+ {conflictText && (
+
{conflictText}
+ )}
+
+
+ {row.editable ? (
+ setOverride(row.id, chord)}
+ onUnassign={() => setOverride(row.id, null)}
+ onReset={() => removeOverride(row.id)}
+ />
+ ) : row.effectiveChord ? (
+ {formatKeyDisplay(row.effectiveChord)}
+ ) : (
+ No key
+ )}
+
+
+ Default:
+ {row.defaultChord ? formatKeyDisplay(row.defaultChord) : '—'}
+
+
+ Scope: {SCOPE_LABELS[row.scope]}
+
+
+ {STATE_LABELS[row.state] && {STATE_LABELS[row.state]}}
+ {row.availability === 'unavailable-platform' && Unavailable on this platform}
+
+
+ );
+ })}
+
+ ))}
+ {visibleReference.length > 0 && (
+
+
+ Terminal / native — not remappable
+
+ {visibleReference.map((reference) => (
+
+ {reference.label}
+ {formatKeyDisplay(reference.chord)}
+ Owned by the terminal or the view
+
+ ))}
+
+ )}
+