diff --git a/packages/oc-watches/src/tui.tsx b/packages/oc-watches/src/tui.tsx index 0f1ec5e..603df91 100644 --- a/packages/oc-watches/src/tui.tsx +++ b/packages/oc-watches/src/tui.tsx @@ -16,6 +16,7 @@ import { } from "solid-js"; const refreshMs = 5_000; +const openWatchesCommand = "oc-watches.open"; const expiryFormat = new Intl.DateTimeFormat(undefined, { month: "short", day: "numeric", @@ -101,13 +102,23 @@ function WatchSidebar(props: { sessionID: string }) { return ( 0}> - - Watches ({rows().length}) + context.keymap.dispatch(openWatchesCommand)} + > + Watches ({rows().length}) › {(row) => ( - + {row().name} @@ -287,7 +298,7 @@ export default Plugin.define({ mode: "global", commands: [ { - id: "oc-watches.open", + id: openWatchesCommand, title: "Watches", palette: true, slash: { name: "watches" },