From 84940c5d5e8f6818e97ae67bc1d0d870daf88e5c Mon Sep 17 00:00:00 2001 From: Negrescu Alexandru Date: Sun, 25 Oct 2026 12:26:07 +0200 Subject: [PATCH] feat(pstack): render the poteto-mode status pill in theme colors The pill carried two color emoji, which ignore the palette and render double-width beside the rest of the status line. It now uses only theme colors: a dot, a muted label, and a warning-colored state. --- plugins/pstack/extensions/potetomode/index.js | 9 ++------- plugins/pstack/extensions/potetomode/index.test.js | 4 ++-- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/plugins/pstack/extensions/potetomode/index.js b/plugins/pstack/extensions/potetomode/index.js index 527ca45..a0f4d52 100644 --- a/plugins/pstack/extensions/potetomode/index.js +++ b/plugins/pstack/extensions/potetomode/index.js @@ -49,14 +49,9 @@ export default function potetomode(pi) { return; } - // Indicator matches ponytail's style: ● active, ○ idle + // Theme colors only: color emoji ignore the palette and render double-width, so they clash with the rest of the status line. const indicator = isActive ? theme.fg("accent", "●") : theme.fg("dim", "○"); - // 🥔 / 👑 poteto: PINNED - const pill = - indicator + - " 🥔 " + - theme.fg("muted", "poteto: ") + - theme.fg("warning", "👑 PINNED"); + const pill = indicator + " " + theme.fg("muted", "poteto ") + theme.fg("warning", "pinned"); c.ui.setStatus("poteto-mode", pill); }; diff --git a/plugins/pstack/extensions/potetomode/index.test.js b/plugins/pstack/extensions/potetomode/index.test.js index b8bdd79..3be6bf0 100644 --- a/plugins/pstack/extensions/potetomode/index.test.js +++ b/plugins/pstack/extensions/potetomode/index.test.js @@ -61,12 +61,12 @@ test("latest entry wins and a new session resets the previous override", async ( test("shortcut, status, command and injection share one effective state", async () => { const session = host(); await session.start(); - expect(session.status()).toContain("PINNED"); + expect(session.status()).not.toBe(""); session.shortcut(); expect(session.status()).toBe(""); expect(await session.before()).toBeUndefined(); await session.command("on"); - expect(session.status()).toContain("PINNED"); + expect(session.status()).not.toBe(""); expect(await session.before()).toBeDefined(); await session.command("off"); expect(await session.before()).toBeUndefined();