feat: add configurable pi statusbar extension

This commit is contained in:
2026-05-03 11:31:46 -04:00
commit c96da624fe
21 changed files with 6150 additions and 0 deletions

41
config.ts Normal file
View File

@@ -0,0 +1,41 @@
import type { StatusbarConfig } from "./types";
export const statusbarConfig: StatusbarConfig = {
separator: "·",
rows: [
{
left: ["directory"],
right: ["context", "model"],
},
{
center: [
{ type: "usage", window: "current", style: "line", grow: 1 },
{
type: "usage",
window: "current",
style: "text",
parts: ["time"],
},
{
type: "usage",
window: "week",
style: "text",
parts: ["time"],
},
{ type: "usage", window: "week", style: "line", grow: 1 },
],
},
],
modules: {
directory: { showGitBranch: true, showSessionName: true },
context: { showWindow: true },
model: { showProvider: true, showThinking: true },
cost: { showSubscription: false },
usage: {
showText: false,
parts: ["percent", "time"],
separator: " | ",
colorBars: true,
},
},
};