From 3e02b3d348f2eb2880a0ea1af3ae09a96056eb08 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Sun, 28 Sep 2025 16:38:53 -0700 Subject: [PATCH] ls & projects have links --- app/nose/bin/{ls.ts => ls.tsx} | 7 ++++++- app/nose/bin/{projects.ts => projects.tsx} | 4 +++- 2 files changed, 9 insertions(+), 2 deletions(-) rename app/nose/bin/{ls.ts => ls.tsx} (73%) rename app/nose/bin/{projects.ts => projects.tsx} (57%) diff --git a/app/nose/bin/ls.ts b/app/nose/bin/ls.tsx similarity index 73% rename from app/nose/bin/ls.ts rename to app/nose/bin/ls.tsx index 2a310fb..28abd31 100644 --- a/app/nose/bin/ls.ts +++ b/app/nose/bin/ls.tsx @@ -17,5 +17,10 @@ export default function () { files = files.filter(file => file.endsWith(`${project}.ts`) || file.endsWith(`${project}.tsx`)) } - return files.join(" ") + return <> + {root !== projectDir() && ..} + {files.map(file => + {file} + )} + } \ No newline at end of file diff --git a/app/nose/bin/projects.ts b/app/nose/bin/projects.tsx similarity index 57% rename from app/nose/bin/projects.ts rename to app/nose/bin/projects.tsx index 9d0ab99..f03c95c 100644 --- a/app/nose/bin/projects.ts +++ b/app/nose/bin/projects.tsx @@ -5,5 +5,7 @@ export default function () { const state = getState() if (!state) return { error: "no state" } - return { html: apps().map(app => app === state.project ? `${app}` : app).join(" ") } + return <> + {apps().map(app => {app})} + } \ No newline at end of file