diff --git a/src/components/chat/view/subcomponents/ProviderSelectionEmptyState.tsx b/src/components/chat/view/subcomponents/ProviderSelectionEmptyState.tsx index 62a578e8..5f080467 100644 --- a/src/components/chat/view/subcomponents/ProviderSelectionEmptyState.tsx +++ b/src/components/chat/view/subcomponents/ProviderSelectionEmptyState.tsx @@ -3,6 +3,7 @@ import { Check, ChevronDown } from "lucide-react"; import { useTranslation } from "react-i18next"; import { useServerPlatform } from "../../../../hooks/useServerPlatform"; +import { useCommandKey } from "../../../../hooks/useCommandKey"; import SessionProviderLogo from "../../../llm-logo-provider/SessionProviderLogo"; import { CLAUDE_MODELS, @@ -107,6 +108,7 @@ export default function ProviderSelectionEmptyState({ }: ProviderSelectionEmptyStateProps) { const { t } = useTranslation("chat"); const { isWindowsServer } = useServerPlatform(); + const { modKey } = useCommandKey(); const [dialogOpen, setDialogOpen] = useState(false); const visibleProviderGroups = useMemo( @@ -291,7 +293,7 @@ export default function ProviderSelectionEmptyState({
Press
- {typeof navigator !== "undefined" && /Mac|iPhone|iPad/.test(navigator.platform) ? "⌘" : "Ctrl"}
+ {modKey}
K
to search sessions, files, and commits
diff --git a/src/components/command-palette/CommandPalette.tsx b/src/components/command-palette/CommandPalette.tsx
index 2c67271c..17df2019 100644
--- a/src/components/command-palette/CommandPalette.tsx
+++ b/src/components/command-palette/CommandPalette.tsx
@@ -3,24 +3,18 @@ import { useNavigate } from 'react-router-dom';
import {
ArrowDownToLine,
ArrowUpFromLine,
- Bell,
- Bot,
FileText,
- GitBranch,
GitCommit,
GitMerge,
- Info,
- KeyRound,
- ListChecks,
MessageSquare,
MessageSquarePlus,
- Palette,
- Plug,
RefreshCw,
Settings,
SunMoon,
} from 'lucide-react';
+import { SETTINGS_MAIN_TABS } from '../settings/constants/constants';
+
import {
Command,
CommandEmpty,
@@ -58,17 +52,6 @@ function parseMode(input: string): { mode: Mode; query: string } {
return { mode: 'mixed', query: input };
}
-const SETTINGS_TABS: Array<{ id: string; label: string; keywords: string; icon: React.ComponentType<{ className?: string }> }> = [
- { id: 'agents', label: 'Agents', keywords: 'agents subagents claude code', icon: Bot },
- { id: 'appearance', label: 'Appearance', keywords: 'appearance theme dark light language', icon: Palette },
- { id: 'git', label: 'Git', keywords: 'git github commits', icon: GitBranch },
- { id: 'api', label: 'API Tokens', keywords: 'api tokens auth keys', icon: KeyRound },
- { id: 'tasks', label: 'Tasks', keywords: 'tasks taskmaster', icon: ListChecks },
- { id: 'notifications', label: 'Notifications', keywords: 'notifications alerts push', icon: Bell },
- { id: 'plugins', label: 'Plugins', keywords: 'plugins extensions integrations', icon: Plug },
- { id: 'about', label: 'About', keywords: 'about version info', icon: Info },
-];
-
const NAV_TABS: Array<{ id: AppTab; label: string; keywords: string }> = [
{ id: 'chat', label: 'Go to Chat', keywords: 'chat messages conversation' },
{ id: 'files', label: 'Go to Files', keywords: 'files file tree explorer' },
@@ -255,7 +238,7 @@ export default function CommandPalette({
{showActions && (