Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(timeline): show platform-aware keyboard shortcut for search

louis030195ba37829f5ef7
diff --git a/screenpipe-app-tauri/components/rewind/timeline/timeline-controls.tsx b/screenpipe-app-tauri/components/rewind/timeline/timeline-controls.tsx
index f04695003..ab5e94687 100644
--- a/screenpipe-app-tauri/components/rewind/timeline/timeline-controls.tsx
+++ b/screenpipe-app-tauri/components/rewind/timeline/timeline-controls.tsx
@@ -12,6 +12,7 @@ import {
import { cn } from "@/lib/utils";
import { motion, AnimatePresence } from "framer-motion";
import { useMemo } from "react";
+import { usePlatform } from "@/lib/hooks/use-platform";
interface TimeRange {
start: Date;
@@ -33,6 +34,8 @@ export function TimelineControls({
onJumpToday,
className,
}: TimelineControlsProps) {
+ const { isMac } = usePlatform();
+
const jumpDay = async (days: number) => {
const today = new Date();
@@ -125,7 +128,7 @@ export function TimelineControls({
</div>
<div className="flex items-center h-10 gap-1.5 bg-card/80 backdrop-blur-sm border border-border rounded-full px-4 shadow-lg">
- <span className="text-xs text-muted-foreground">⌘K</span>
+ <span className="text-xs text-muted-foreground">{isMac ? "⌘K" : "Ctrl+K"}</span>
<span className="text-xs text-muted-foreground">search</span>
</div>
</div>