From 907d8b53933e4cbb9840736c4c632720123de964 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath <2+defunkt@users.noreply.github.com> Date: Thu, 2 Oct 2025 14:43:11 -0700 Subject: [PATCH] statusline rocks --- src/css/terminal.css | 5 +++++ src/html/terminal.tsx | 2 +- src/js/session.ts | 6 +++--- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/css/terminal.css b/src/css/terminal.css index 3fa8169..17e1072 100644 --- a/src/css/terminal.css +++ b/src/css/terminal.css @@ -175,4 +175,9 @@ font-size: 14px; display: flex; justify-content: space-between; +} + +#statusline a { + color: inherit; + text-decoration: none; } \ No newline at end of file diff --git a/src/html/terminal.tsx b/src/html/terminal.tsx index 6fce011..d1f1644 100644 --- a/src/html/terminal.tsx +++ b/src/html/terminal.tsx @@ -35,6 +35,6 @@ export const Terminal: FC = async () => (
  • VRAM 000KB
  • -
    root: /
    +
    root: /
    ) \ No newline at end of file diff --git a/src/js/session.ts b/src/js/session.ts index cf24cae..a40f3f7 100644 --- a/src/js/session.ts +++ b/src/js/session.ts @@ -8,8 +8,8 @@ import { randomId } from "../shared/utils" import { $ } from "./dom" export const sessionId = randomId() -export const projectName = $("project-name") as HTMLSpanElement -export const projectCwd = $("project-cwd") as HTMLSpanElement +export const projectName = $("project-name") as HTMLAnchorElement +export const projectCwd = $("project-cwd") as HTMLAnchorElement export const sessionStore = new Map() export function handleSessionStart(msg: SessionStartMessage) { @@ -44,5 +44,5 @@ function displayProjectPath(path: string): string { let prefix = sessionStore.get("NOSE_DIR") || "" prefix += "/" + sessionStore.get("project") - return path.replace(prefix, "") + return path.replace(prefix, "") || "/" } \ No newline at end of file