From 54ed734acc6a21b0e1128c88de12e16cbb8af544 Mon Sep 17 00:00:00 2001 From: Ryan Yip Date: Wed, 2 Dec 2026 15:13:34 +0800 Subject: [PATCH 1/2] Wrap watch names in the sidebar --- packages/oc-watches/src/tui.tsx | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/packages/oc-watches/src/tui.tsx b/packages/oc-watches/src/tui.tsx index 0f1ec5e..fb4ed8c 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" }, From 0595c3748d491cf48135080f29751395153deb6e Mon Sep 17 00:00:00 2001 From: Ryan Yip Date: Wed, 2 Dec 2026 15:20:39 +0800 Subject: [PATCH 2/2] Use default watch row alignment --- packages/oc-watches/src/tui.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/oc-watches/src/tui.tsx b/packages/oc-watches/src/tui.tsx index fb4ed8c..603df91 100644 --- a/packages/oc-watches/src/tui.tsx +++ b/packages/oc-watches/src/tui.tsx @@ -111,7 +111,7 @@ function WatchSidebar(props: { sessionID: string }) { {(row) => ( - +