export const QUICK_SEARCH_LIMIT = 5; export const QUICK_SEARCH_DELAY = 150; export const moveActive = (index: number, delta: 1 | -1, count: number): number => Math.min(Math.max(index + delta, -1), count - 1); export const shortcutLabel = (mac: boolean): string => (mac ? "⌘K" : "Ctrl+K");