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(sidebar): search opens overlay window + real shortcut + smaller icons

Louis Beaumonte1bc03668c3d
diff --git a/apps/screenpipe-app-tauri/app/home/page.tsx b/apps/screenpipe-app-tauri/app/home/page.tsx
index 3f9e08ed3..f3c536af0 100644
--- a/apps/screenpipe-app-tauri/app/home/page.tsx
+++ b/apps/screenpipe-app-tauri/app/home/page.tsx
@@ -39,6 +39,8 @@ import Timeline from "@/components/rewind/timeline";
import { useQueryState } from "nuqs";
import { listen } from "@tauri-apps/api/event";
import { useSettings } from "@/lib/hooks/use-settings";
+import { commands } from "@/lib/utils/tauri";
+import { formatShortcutDisplay } from "@/lib/chat-utils";
import { useTeam } from "@/lib/hooks/use-team";
import { useEnterprisePolicy } from "@/lib/hooks/use-enterprise-policy";
import { EnterpriseLicensePrompt } from "@/components/enterprise-license-prompt";
@@ -425,9 +427,9 @@ function HomeContent() {
)}
>
{sidebarCollapsed ? (
- <PanelLeftOpen className="h-4 w-4" />
+ <PanelLeftOpen className="h-3.5 w-3.5" />
) : (
- <PanelLeftClose className="h-4 w-4" />
+ <PanelLeftClose className="h-3.5 w-3.5" />
)}
</button>
</TooltipTrigger>
@@ -437,18 +439,16 @@ function HomeContent() {
</Tooltip>
{/* Search — sits to the right of the collapse icon, same
- row as the macOS traffic lights. Removes the duplicate
- search button that used to live inside the embedded
- timeline's controls. Click → switch to Timeline (so the
- modal has a host) and emit open-search; the standalone
- Search window flow stays via the standalone timeline
- button. */}
+ row as the macOS traffic lights. Click pops the overlay
+ Search window (same as the global ⌘K shortcut) instead
+ of the embedded modal — the modal-in-timeline path was
+ useless when not on the timeline view, and the overlay
+ search is what users already know from the shortcut. */}
<Tooltip>
<TooltipTrigger asChild>
<button
onClick={() => {
- setActiveSection("timeline");
- void emit("open-search");
+ void commands.showWindow({ Search: { query: null } });
}}
aria-label="search"
className={cn(
@@ -458,11 +458,17 @@ function HomeContent() {
isTranslucent ? "vibrant-nav-item" : "text-muted-foreground hover:text-foreground hover:bg-muted/50"
)}
>
- <Search className="h-4 w-4" />
+ <Search className="h-3.5 w-3.5" />
</button>
</TooltipTrigger>
<TooltipContent side="bottom" className="text-xs">
- search <kbd className="ml-1 px-1 py-0.5 bg-muted rounded text-[10px]">⌘K</kbd>
+ search
+ <kbd className="ml-1 px-1 py-0.5 bg-muted rounded text-[10px]">
+ {formatShortcutDisplay(
+ settings.searchShortcut || (isMac ? "Control+Super+K" : "Alt+K"),
+ isMac,
+ )}
+ </kbd>
</TooltipContent>
</Tooltip>
diff --git a/apps/screenpipe-app-tauri/components/rewind/timeline.tsx b/apps/screenpipe-app-tauri/components/rewind/timeline.tsx
index 82cbbebbf..4ade20fd0 100644
--- a/apps/screenpipe-app-tauri/components/rewind/timeline.tsx
+++ b/apps/screenpipe-app-tauri/components/rewind/timeline.tsx
@@ -475,18 +475,6 @@ export default function Timeline({ embedded = false }: { embedded?: boolean }) {
};
}, [navigateToTimestamp]);
- // Open the search modal in response to the AppSidebar's top-bar
- // search button (embedded mode only — standalone window has its
- // own button in TimelineControls).
- useEffect(() => {
- if (!embedded) return;
- const unlisten = listen("open-search", () => {
- setShowSearchModal(true);
- });
- return () => {
- unlisten.then((fn) => fn());
- };
- }, [embedded]);
// Listen for navigate-to-frame events (deep link: screenpipe://frame/12345)
useEffect(() => {
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
index d051491a9..006e075fd 100644
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "screenpipe-app"
-version = "2.4.81"
+version = "2.4.82"
description = "24/7 memory for your desktop. 100% local."
authors = ["you"]
license = ""