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();