diff options
| author | David Hill <[email protected]> | 2025-12-12 23:45:39 +0000 |
|---|---|---|
| committer | David Hill <[email protected]> | 2025-12-12 23:45:39 +0000 |
| commit | 7cb5a77ba68de17ead5e4bbadf69c7720f0bab32 (patch) | |
| tree | af5369619a20e066081873cbbf423852410b8ae2 | |
| parent | cd9898a5650c38b606c615f0a17618cd713900ff (diff) | |
| download | opencode-7cb5a77ba68de17ead5e4bbadf69c7720f0bab32.tar.gz opencode-7cb5a77ba68de17ead5e4bbadf69c7720f0bab32.zip | |
fix: mute the project path in the sidebar that proceeds the final directory
| -rw-r--r-- | packages/opencode/src/cli/cmd/tui/routes/session/sidebar.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/opencode/src/cli/cmd/tui/routes/session/sidebar.tsx b/packages/opencode/src/cli/cmd/tui/routes/session/sidebar.tsx index c1c29a731..b5208cd1c 100644 --- a/packages/opencode/src/cli/cmd/tui/routes/session/sidebar.tsx +++ b/packages/opencode/src/cli/cmd/tui/routes/session/sidebar.tsx @@ -277,7 +277,10 @@ export function Sidebar(props: { sessionID: string }) { </box> </box> </Show> - <text fg={theme.text}>{directory()}</text> + <text> + <span style={{ fg: theme.textMuted }}>{directory().split("/").slice(0, -1).join("/")}/</span> + <span style={{ fg: theme.text }}>{directory().split("/").at(-1)}</span> + </text> <text fg={theme.textMuted}> <span style={{ fg: theme.success }}>•</span> <b>Open</b> <span style={{ fg: theme.text }}> |
