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
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
feat(timeline): search nav polish — ⌘G, dot-strip, gentle pulse
Louis Beaumonta83afa951828
diff --git a/apps/screenpipe-app-tauri/components/rewind/hooks/use-timeline-keyboard.ts b/apps/screenpipe-app-tauri/components/rewind/hooks/use-timeline-keyboard.tsindex 367b1465d..b7489877c 100644--- a/apps/screenpipe-app-tauri/components/rewind/hooks/use-timeline-keyboard.ts+++ b/apps/screenpipe-app-tauri/components/rewind/hooks/use-timeline-keyboard.ts@@ -107,6 +107,33 @@ export function useTimelineKeyboard(opts: {return () => window.removeEventListener("keydown", handleKeyDown);}, [showSearchModal]);+ // Cmd+G / Cmd+Shift+G (mac) or Ctrl+G / Ctrl+Shift+G (other) —+ // jump to next/previous search match while in search review mode.+ // Mirrors the chevron buttons: G = forward in time (newer), Shift+G = backward.+ useEffect(() => {+ const handleFindNav = (e: KeyboardEvent) => {+ if (!inSearchReviewMode) return;+ if (showSearchModal) return;+ const target = e.target as HTMLElement;+ if (target instanceof HTMLInputElement || target instanceof HTMLTextAreaElement || target?.isContentEditable) {+ return;+ }+ const mod = isMac ? e.metaKey : e.ctrlKey;+ if (!mod) return;+ if (e.key.toLowerCase() !== "g") return;+ e.preventDefault();+ if (isPlaying) pausePlayback();+ const newIndex = e.shiftKey+ ? Math.min(searchResultIndex + 1, searchResults.length - 1) // older+ : Math.max(searchResultIndex - 1, 0); // newer+ if (newIndex !== searchResultIndex) {+ navigateToSearchResultRef.current(newIndex);+ }+ };+ window.addEventListener("keydown", handleFindNav);+ return () => window.removeEventListener("keydown", handleFindNav);+ }, [inSearchReviewMode, showSearchModal, isMac, isPlaying, pausePlayback, searchResultIndex, searchResults.length, navigateToSearchResultRef]);+// Cmd+Shift+C / Ctrl+Shift+C — copy current frame imageuseEffect(() => {const handleCopyFrame = (e: KeyboardEvent) => {diff --git a/apps/screenpipe-app-tauri/components/rewind/timeline.tsx b/apps/screenpipe-app-tauri/components/rewind/timeline.tsxindex 9ad9c328d..d94415534 100644--- a/apps/screenpipe-app-tauri/components/rewind/timeline.tsx+++ b/apps/screenpipe-app-tauri/components/rewind/timeline.tsx@@ -87,7 +87,64 @@ const easeOutCubic = (x: number): number => {return 1 - Math.pow(1 - x, 3);};-+// Tiny dot-strip showing all search-result positions; click to jump.+// Each result is a small bar; the active one is bright yellow with a glow.+// Renders nothing for ≤1 result (the counter alone is sufficient).+function SearchResultStrip({+ resultsLength,+ activeIndex,+ onJump,+}: {+ resultsLength: number;+ activeIndex: number;+ onJump: (index: number) => void;+}) {+ if (resultsLength <= 1) return null;+ const stripWidth = 110;+ const stripHeight = 14;+ const denom = Math.max(1, resultsLength - 1);+ return (+ <div+ className="relative shrink-0"+ style={{ width: stripWidth, height: stripHeight }}+ role="slider"+ aria-label="Search result position"+ aria-valuemin={1}+ aria-valuemax={resultsLength}+ aria-valuenow={activeIndex + 1}+ >+ <div className="absolute left-0 right-0 top-1/2 -translate-y-1/2 h-px bg-white/15" />+ {Array.from({ length: resultsLength }).map((_, i) => {+ const isActive = i === activeIndex;+ const x = (i / denom) * stripWidth;+ return (+ <button+ key={i}+ type="button"+ onClick={() => onJump(i)}+ className="absolute top-1/2 cursor-pointer focus:outline-none"+ style={{+ left: x - (isActive ? 2 : 1),+ width: isActive ? 4 : 2,+ height: isActive ? 10 : 5,+ transform: "translateY(-50%)",+ borderRadius: 1.5,+ backgroundColor: isActive+ ? "rgb(250, 204, 21)"+ : "rgba(255, 255, 255, 0.45)",+ boxShadow: isActive+ ? "0 0 5px rgba(250, 204, 21, 0.7)"+ : "none",+ transition: "all 120ms ease-out",+ zIndex: isActive ? 2 : 1,+ }}+ title={`Match ${i + 1}`}+ />+ );+ })}+ </div>+ );+}export default function Timeline({ embedded = false }: { embedded?: boolean }) {const { isMac } = usePlatform();@@ -1363,16 +1420,23 @@ export default function Timeline({ embedded = false }: { embedded?: boolean }) {className="px-1.5 hover:text-white/80 disabled:text-white/30"disabled={searchResultIndex >= searchResults.length - 1}onClick={() => navigateToSearchResult(searchResultIndex + 1)}+ title="Older match (←)">◀</button>- <span className="tabular-nums font-medium">- {searchResultIndex + 1} / {searchResults.length}+ <SearchResultStrip+ resultsLength={searchResults.length}+ activeIndex={searchResultIndex}+ onJump={navigateToSearchResult}+ />+ <span className="tabular-nums font-medium text-white/80">+ {searchResultIndex + 1}/{searchResults.length}</span><buttonclassName="px-1.5 hover:text-white/80 disabled:text-white/30"disabled={searchResultIndex <= 0}onClick={() => navigateToSearchResult(searchResultIndex - 1)}+ title={isMac ? "Newer match (→ or ⌘G)" : "Newer match (→ or Ctrl+G)"}>▶</button>diff --git a/apps/screenpipe-app-tauri/components/text-overlay.tsx b/apps/screenpipe-app-tauri/components/text-overlay.tsxindex 6c4fc059d..c3c95ad15 100644--- a/apps/screenpipe-app-tauri/components/text-overlay.tsx+++ b/apps/screenpipe-app-tauri/components/text-overlay.tsx@@ -350,6 +350,12 @@ export const TextOverlay = memo(function TextOverlay({transition: "opacity 600ms ease-out",}}>+ <style>{`+ @keyframes screenpipe-search-hl-pulse {+ 0%, 100% { box-shadow: 0 0 6px rgba(250, 204, 21, 0.45); }+ 50% { box-shadow: 0 0 14px rgba(250, 204, 21, 0.85); }+ }+ `}</style>{highlights.map((hl) => (<divkey={hl.key}@@ -363,6 +369,9 @@ export const TextOverlay = memo(function TextOverlay({border: "1px solid rgba(250, 204, 21, 0.85)",borderRadius: "3px",boxShadow: "0 0 6px rgba(250, 204, 21, 0.45)",+ animation: highlightFading+ ? undefined+ : "screenpipe-search-hl-pulse 1.8s ease-in-out infinite",}}/>))}