repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

claude: statusline cleanup

980b84f10c67660e6a4f52bc88b0ce2d4a285b61

Oliver Krylow <o.krylow@isp-insoft.de> ·

unsigned

Browse filesCompare with HEAD

wezterm: win32 cleanup

Changed files (12)

+294 / −99 text lines · 1 binary (striped old/new sizes in 64-byte units, not churn) · lines and sizes scale separately

Diff layout

NB-00718.symlinks

Modified

+18 / −0 text lines

11forgejo-cli
22~/AppData/Roaming/Cyborus/forgejo-cli/config
4claude/settings.json
5~/.claude/settings.json
6
7claude/cc-statusline-hook.js
8~/.claude/cc-statusline-hook.js
9
10claude/statusline.js
11~/.claude/statusline.js
12
13claude/CLAUDE.md
14~/.claude/CLAUDE.md
15
16claude/RTK.md
17~/.claude/RTK.md
18
19codex/config.toml
20~/.codex/config.toml
21
422Notes
523~/Notes

claude/STATUSLINE.md

Added
new file mode 100644

+141 / −0 text lines

1# Claude Code Statusline
2
3Eine einzeilige, Statusline für Claude Code.
4Reines Node (stdlib), ein Renderer + ein Hook. Cross-Plattform (win/mac/linux).
5
6Beispielausgabe:
7
8```
9 RD-1950 · Opus 4.8 · xhigh · RD-1950 · 5h ██▋░░░░░ 33%·2h44m · 7d █▏░░░░░░ 14% · 🔥$26.68/hr · $0.499 $136.54Σ $486.13☾ · caveman:full
10```
12Segmente (v.l.n.r.): Verzeichnis · Modell · Effort · Git/JJ-Branch · 5h-Limit ·
137d-Limit · Burn-Rate ($/h) · Kosten (Turn / Session Σ / Monat ☾) · Caveman-Badge.
15---
17## Voraussetzungen
19| Dep | Pflicht | Zweck |
20|-----|---------|-------|
21| **Node ≥ 18** | ✅ | Laufzeit. Nur stdlib (`fs/os/path/crypto/child_process`), keine npm-Pakete. |
22| **Claude Code** | ✅ | Liefert den JSON-Payload (inkl. Kosten) via stdin. |
23| **git** oder **jj** | ➖ | Branch-Segment. Muss im `PATH` sein. Ohne → Segment entfällt. |
24| **Nerd Font** | ➖ (empfohlen) | Glyphen ``, Balken `█▏░`, Icons. Ohne → Tofu (`□`). |
25| **caveman-Plugin** | ➖ | Caveman-Badge. Ohne → Badge entfällt. |
27---
29## Dateien
31| Datei | Rolle |
32|-------|-------|
33| [`statusline.js`](./statusline.js) | Renderer. Liest stdin-JSON, gibt eine Zeile aus. |
34| [`cc-statusline-hook.js`](./cc-statusline-hook.js) | Hook. Setzt Turn-Marker + Workflow-Badge. |
36Beide nach `~/.claude/` kopieren oder symlinken:
38```bash
39ln -s "$PWD/statusline.js" ~/.claude/statusline.js
40ln -s "$PWD/cc-statusline-hook.js" ~/.claude/cc-statusline-hook.js
41```
43---
45## Installation
471. Node ≥ 18 installieren, im `PATH`.
482. Beide Dateien nach `~/.claude/` (s.o.).
493. `~/.claude/settings.json` ergänzen (Auszug unten).
504. Nerd Font im Terminal aktivieren (sonst Tofu statt Glyphen).
515. Claude Code neu starten.
53### settings.json (Auszug)
55```jsonc
56{
57 "statusLine": {
58 "type": "command",
59 "command": "node ~/.claude/statusline.js"
60 },
61 "hooks": {
62 // Turn-Marker: Basis für die "Turn"-Kosten (Δ seit letztem Prompt)
63 "UserPromptSubmit": [
64 {
65 "hooks": [
66 { "type": "command", "command": "node ~/.claude/cc-statusline-hook.js" }
67 ]
68 }
69 ],
70 // Workflow-Badge: NUR beim Workflow-Tool feuern (matcher scoped!)
71 "PreToolUse": [
72 {
73 "matcher": "Workflow",
74 "hooks": [
75 { "type": "command", "command": "node ~/.claude/cc-statusline-hook.js" }
76 ]
77 }
78 ]
79 }
80}
81```
83Der Hook ist **ein** Skript für beide Events; es verzweigt über `hook_event_name`.
85---
87## Funktionsweise
89- Claude Code spawnt `statusline.js` **pro Render** (frischer Prozess, Payload via
90 stdin, 300 ms Debounce, event-getriggert: neue Assistant-Nachricht, `/compact`,
91 Permission-/Vim-Mode-Wechsel). Per-Render-Spawn ist von der API erzwungen.
92- Renderer baut Segmente, jeweils eigener `try/catch` (ein Crash darf die Zeile nicht
93 leeren), und schreibt **ohne** Trailing-Newline.
94- **Turn-Kosten**: Der Hook legt bei `UserPromptSubmit` eine Marker-Datei
95 `~/.claude/.cc-turn-<session>` an. Der nächste Render liest sie, rebaselined den
96 Turn-Start und löscht den Marker.
97- **Workflow-Badge**: Bei `PreToolUse(Workflow)` schreibt der Hook eine selbst-
98 ablaufende Zeile nach `~/.claude/.cc-statusline-extra` (TTL 120 s), die der Renderer
99 rendert.
100- **Kosten-Ledger** `~/.claude/.cc-cost-ledger.json`: Turn / Session / Monat (monats-
101 übergreifend kumuliert). Idle-Renders (keine Kostenänderung) schreiben nicht.
102 Selbst-GC räumt alte `.cc-*.tmp` / `.cc-turn-*` (> 1 Tag) auf.
104---
106## Anpassung
108Tunables stehen oben in `statusline.js` im `CONFIG`-Block:
110| Schlüssel | Default | Bedeutung |
111|-----------|---------|-----------|
112| `sep` | `" · "` | Trenner zwischen Segmenten. |
113| `barWidth` | `8` | Zellen pro Usage-Balken. |
114| `costStyle` | `"icon"` | `"icon"` = helle `$Zahl` + gedämpftes Glyph; `"slash"` = `$x/turn`. |
115| `gitCacheTtlMs` | `8000` | Cache für `git status` (Spawn ist ~400 ms kalt auf win32). |
116| `contextWarnPct`/`CritPct` | `70`/`90` | Schwellen Kontext-Balken (gelb/rot). |
117| `usageWarnPct`/`CritPct` | `50`/`80` | Schwellen Rate-Limit-Balken. |
118| `burnWindowMs` | `10 min` | Fenster für die Burn-Rate ($/h). |
120---
122## Performance (win32)
124- Harte Untergrenze ist **nicht** das Skript, sondern der Node-Kaltstart:
125 `node -e 0` ≈ **120 ms** (Prozess-Spawn + V8-Init). Nicht durch Flags reduzierbar.
126- **< 100 ms ist mit Node unmöglich.** Nur ein kompiliertes Binary (Go/Rust ~10–20 ms)
127 unterbietet das — kostet aber Cross-Plattform (per-OS-Builds) + zweite Codebase.
128 Bun (win32) und Deno sind langsamer als Node; LLRT kann kein stdin lesen. → Node.
129- Die Bar ist asynchron und blockiert keine Eingabe; ~120–140 ms sind unsichtbar.
131---
133## Troubleshooting
135| Symptom | Ursache / Fix |
136|---------|---------------|
137| `□`/Tofu statt Glyphen | Nerd Font nicht aktiv im Terminal. |
138| Keine Kosten | Alte Claude-Code-Version ohne `cost` im Payload. |
139| Kein Branch-Segment | `git`/`jj` nicht im `PATH`, oder nicht in einem Repo. |
140| Keine Turn-Kosten | Hook nicht in `UserPromptSubmit` registriert. |
141| Statusline leer | `statusline.js` wirft beim Start — manuell testen: `echo '{}' \| node ~/.claude/statusline.js`. |

claude/statusline.js

Modified

+56 / −25 text lines

2121// ─── CONFIG ──────────────────────────────────────────────────────────────────
2222const CONFIG = {
23 sep: " · ", // segment padding
23 sep: " · ", // segment padding (single-space around the dot — tight)
2424 barWidth: 8, // usage bar cells
2525 contextWarnPct: 70,
2626 contextCritPct: 90,
2727 usageAlways: true,
2828 usageWarnPct: 50,
2929 usageCritPct: 80,
30 costStyle: "icon", // "slash" → $0.15/turn | "icon" → ⟳$0.15
31 gitCacheTtlMs: 3000,
30 costStyle: "icon", // "slash" → $0.15/turn | "icon" → bright $0.15 + dim trailing glyph
31 gitCacheTtlMs: 8000, // git status spawn is ~400ms cold on win32 — cache harder
3232 extraTtlMs: 120000,
3333 cmdTimeoutMs: 2500,
3434 ledgerPruneDays: 40,
9797// ─── 2. model ──────────────────────────────────────────────────────────────────
9898try {
99 if (d?.model?.display_name) push(c.magenta(d.model.display_name));
99 // strip the " (1M context)" / any trailing parenthetical — keep just "Opus 4.8"
100 if (d?.model?.display_name) push(c.magenta(d.model.display_name.replace(/\s*\([^)]*\)\s*$/, "")));
100101} catch {}
102103// ─── 3. effort / thinking ──────────────────────────────────────────────────────
105106 if (lvl) {
106107 const on = d?.thinking?.enabled !== false;
107108 const col = lvl === "max" || lvl === "xhigh" ? c.magenta : lvl === "high" ? c.blue : c.dim;
108 push(on ? col(`⚡${lvl}`) : c.dim(`⚡${lvl}`));
109 push(on ? col(lvl) : c.dim(lvl)); // no ⚡ glyph — level word alone
109110 }
110111} catch {}
159160 const { turn, month, burnRate } = updateLedger(sid, total);
160161 // 🔥 burn rate: own segment, before the cost cluster (matches bars · 🔥 · cost)
161162 if (burnRate > 0) push(c.orange(`🔥$${burnRate.toFixed(2)}/hr`));
162 // icon: semantic glyph (⟳ turn / Σ session / ☾ month). slash: <num>/<type>.
163 const fmt = (n, type, icon, color) =>
164 CONFIG.costStyle === "icon" ? color(`${icon}$${money(n)}`) : color(`$${money(n)}/${type}`);
163 // icon style: bright $number (emphasis) + dim trailing glyph (muted icon).
164 // turn has no glyph (bare $num); session Σ / month ☾. slash: $num/type.
165 const fmt = (n, type, icon) =>
166 CONFIG.costStyle === "icon"
167 ? c.white(`$${money(n)}`) + (icon ? c.dim(icon) : "")
168 : c.white(`$${money(n)}/${type}`);
165169 const seg = [];
166 if (turn > 0) seg.push(fmt(turn, "turn", "⟳", c.white));
167 seg.push(fmt(total, "session", "Σ", c.dim));
168 if (month > 0) seg.push(fmt(month, "month", "☾", c.dim));
170 if (turn > 0) seg.push(fmt(turn, "turn", ""));
171 seg.push(fmt(total, "session", "Σ"));
172 if (month > 0) seg.push(fmt(month, "month", "☾"));
169173 push(seg.join(" "));
170174 }
171175} catch {}
210214 L = JSON.parse(fs.readFileSync(file, "utf8"));
211215 } catch {}
212216 if (!L.sessions) L.sessions = {};
217 let dirty = false; // persist (disk write) only when something material changed
214219 // New month → reset the bucket, KEEP per-session baselines so a session that
215220 // straddles midnight only contributes its post-boundary spend.
216221 if (L.month !== mk) {
217222 L.month = mk;
218223 L.monthTotal = 0;
224 dirty = true;
219225 }
221227 // Prune stale sessions.
233239 if (fs.existsSync(marker)) {
234240 s.turnStart = total;
235241 fs.unlinkSync(marker);
242 dirty = true;
236243 }
237244 } catch {}
239246 // Month bucket gets only the new spend since this session was last seen.
240247 const delta = total - (s.total ?? 0);
241 if (delta > 0) L.monthTotal = (L.monthTotal || 0) + delta;
248 if (delta > 0) {
249 L.monthTotal = (L.monthTotal || 0) + delta;
250 dirty = true;
251 }
243253 const turn = Math.max(0, total - (s.turnStart ?? total));
244 s.total = total;
245 s.ts = now;
247 // Timestamped cost samples for the burn rate. Append, drop anything older than
248 // the window (so idle time falls off instead of dragging the rate down), cap.
255 // Burn-rate samples: only record a new (ts,total) when spend actually moved.
256 // Idle re-renders carry no new info and would force a needless disk write.
249257 if (!Array.isArray(s.samples)) s.samples = [];
250 s.samples.push([now, total]);
258 if (delta > 0) {
259 s.total = total;
260 s.ts = now;
261 s.samples.push([now, total]);
262 if (s.samples.length > CONFIG.burnMaxSamples) s.samples = s.samples.slice(-CONFIG.burnMaxSamples);
263 }
264 // Prune the window in-memory every render (cheap, no disk) so even an idle
265 // render shows a current-window rate rather than a stale one.
251266 const wcut = now - CONFIG.burnWindowMs;
252267 s.samples = s.samples.filter((p) => p[0] >= wcut);
253 if (s.samples.length > CONFIG.burnMaxSamples) s.samples = s.samples.slice(-CONFIG.burnMaxSamples);
254268 const burnRate = computeBurnRate(s.samples);
256270 L.sessions[sid] = s;
258 try {
259 const tmp = `${file}.${process.pid}.tmp`;
260 fs.writeFileSync(tmp, JSON.stringify(L));
261 fs.renameSync(tmp, file);
262 } catch {}
272 // Persist only when something changed — skips stringify+write+rename (the bulk
273 // of this function's cost) on the common idle re-render path.
274 if (dirty) {
275 try {
276 const tmp = `${file}.${process.pid}.tmp`;
277 fs.writeFileSync(tmp, JSON.stringify(L));
278 fs.renameSync(tmp, file);
279 } catch {}
280 // Opportunistic GC (write-path only, so throttled to active turns): cancelled
281 // renders leave `.cc-*.tmp` atomic-write orphans; ended sessions leave
282 // `.cc-turn-*` markers. Sweep our own debris older than a day.
283 try {
284 const stale = now - 864e5;
285 for (const f of fs.readdirSync(claudeDir)) {
286 if (!((f.startsWith(".cc-") && f.endsWith(".tmp")) || f.startsWith(".cc-turn-"))) continue;
287 const fp = path.join(claudeDir, f);
288 try {
289 if (fs.statSync(fp).mtimeMs < stale) fs.unlinkSync(fp);
290 } catch {}
291 }
292 } catch {}
293 }
264295 return { turn, month: L.monthTotal || 0, burnRate };
356387 }
357388 if (branch === "(detached)") branch = "detached";
358389 const col = dirty > 0 ? c.yellow : c.green;
359 let s = col(`⎇${branch}`);
390 let s = col(` ${branch}`); // U+E0A0 powerline branch glyph (Nerd Font)
360391 if (dirty > 0) s += c.yellow(`●${dirty}`);
361392 if (ahead) s += c.cyan(`↑${ahead}`);
362393 if (behind) s += c.cyan(`↓${behind}`);
395426 "commit", "review", "compress",
396427 ]);
397428 if (!valid.has(mode) || mode === "off") return "";
398 let out = c.orange(mode || "full");
429 let out = c.dim("caveman:") + c.orange(mode || "full"); // muted label, bright value
399430 if (process.env.CAVEMAN_STATUSLINE_SAVINGS !== "0") {
400431 try {
401432 const sf = path.join(claudeDir, ".caveman-statusline-suffix");

codex/config.toml

Modified

+48 / −0 text lines

1approval_policy = "never"
2sandbox_mode = "danger-full-access"
3permission_profile = "disabled"
4approvals_reviewer = "user"
5service_tier = "fast"
16project_doc_fallback_filenames = ["CLAUDE.md"]
8[windows]
9sandbox = "elevated"
11[notice]
12hide_full_access_warning = true
14[tui]
15theme = "inspired-github"
16status_line = ["model-with-reasoning", "current-dir", "project-name", "git-branch", "pull-request-number", "branch-changes", "context-used", "five-hour-limit", "weekly-limit", "context-window-size", "fast-mode", "thread-title", "task-progress"]
17status_line_use_colors = true
18session_picker_view = "comfortable"
19pet = "disabled"
21[tui.model_availability_nux]
22"gpt-5.5" = 4
324[projects."/home/okr"]
425trust_level = "trusted"
27[projects.'c:\users\okr']
28trust_level = "trusted"
30[projects.'c:\users\okr\.codex']
31trust_level = "trusted"
33[projects.'c:\users\okr\workspace']
34trust_level = "trusted"
36[projects.'c:\users\okr\workspace\dotfiles']
37trust_level = "trusted"
39[projects.'c:\users\okr\workspace\isp-insoft-cloud']
40trust_level = "trusted"
42[projects.'c:\users\okr\workspace\kkg']
43trust_level = "trusted"
45[projects.'c:\users\okr\workspace\kkg-cloud']
46trust_level = "trusted"
48[projects.'c:\users\okr\workspace\kkg5']
49trust_level = "trusted"
651[plugins."atlassian-rovo@openai-curated"]
752enabled = true
1257[plugins."build-web-data-visualization@openai-curated"]
1358enabled = true
60[plugins."claude-skills@personal"]
61enabled = true
1563[plugins."codex-security@openai-curated"]
1664enabled = true

pi/agent/auth.json

Deleted
deleted file mode 100644

Binary size (old → new): 2573 → 0 bytes.

pi/agent/settings.json

Modified

+2 / −8 text lines

77 ],
88 "theme": "terminal",
99 "enabledModels": [
10 "openai-codex/gpt-5.5",
11 "kimi-coding/kimi-for-coding",
12 "zai/glm-5.1",
13 "zai/glm-5-turbo",
14 "minimax/MiniMax-M2.7-highspeed",
15 "minimax/MiniMax-M3",
16 "minimax/MiniMax-M2.5-highspeed"
10 "openai-codex/gpt-5.5"
1711 ],
1812 "defaultProvider": "minimax",
1913 "defaultModel": "MiniMax-M3",
8478 ]
8579 }
8680 }
87}
81}No final newline

wezterm/bugabinga/exec_domains.lua

Deleted
deleted file mode 100644

+0 / −49 text lines

1local wez = require 'wezterm'
2
3local function append_all(dst, src)
4 for _, value in ipairs(src) do
5 table.insert(dst, value)
6 end
7end
8
9local function scoped_domain(name, label, properties)
10 return wez.exec_domain(name, function(cmd)
11 local args = cmd.args or { 'nu', '--login' }
12 local env = cmd.set_environment_variables or {}
13 env.WEZTERM_EXEC_DOMAIN = name
14 cmd.set_environment_variables = env
15 local unit = 'wezterm-' .. name:gsub('[^%w_.-]', '-') .. '-' .. tostring(env.WEZTERM_PANE or os.time())
16 local wrapped = {
17 'systemd-run',
18 '--user',
19 '--scope',
20 '--same-dir',
21 '--collect',
22 '--quiet',
23 '--unit=' .. unit,
24 '--description=WezTerm ' .. name,
25 }
27 for _, property in ipairs(properties) do
28 table.insert(wrapped, '-p')
29 table.insert(wrapped, property)
30 end
32 append_all(wrapped, args)
33 cmd.args = wrapped
34 return cmd
35 end, label)
36end
38return function(cfg)
39 if not wez.target_triple:find( 'linux', 1, true ) then return end
41 cfg.exec_domains = {
42 scoped_domain('scope:build', 'scope:build CPU 25% MEM max 256M', {
43 'CPUQuota=25%',
44 'MemoryMax=256M',
45 'MemorySwapMax=0',
46 'OOMPolicy=stop',
47 }),
48 }
49end

wezterm/bugabinga/options.lua

Modified

+2 / −1 text lines

1717 target = 'CursorColor',
1818 }
1919 cfg.unzoom_on_switch_pane = true
20 cfg.scrollback_lines = 100000
21 cfg.front_end = "WebGpu"
2223 -- Prefer native Wayland only when launched from a Linux Wayland session.
2324 -- Leaves X11, macOS, and Windows alone.

wezterm/bugabinga/status.lua

Modified

+10 / −11 text lines

9898local host_domain = function ()
9999 local triple = wez.target_triple or ''
100 if triple:find( 'windows', 1, true ) then return 'WIN', wez.nerdfonts.dev_windows or '□', palette.warning end
101 if triple:find( 'darwin', 1, true ) then return 'MAC', wez.nerdfonts.dev_apple or '□', palette.ui.important_local end
102 if triple:find( 'linux', 1, true ) then return 'LIN', wez.nerdfonts.dev_linux or '□', palette.ui.important_local end
103 if triple:find( 'bsd', 1, true ) then return 'BSD', wez.nerdfonts.dev_freebsd or '□', palette.ui.important_local end
104 return 'LOC', wez.nerdfonts.cod_terminal or '□', palette.ui.important_local
100 if triple:find( 'windows', 1, true ) then return 'WIN', wez.nerdfonts.dev_windows or '', palette.warning end
101 if triple:find( 'darwin', 1, true ) then return 'MAC', wez.nerdfonts.dev_apple or '', palette.ui.important_local end
102 if triple:find( 'linux', 1, true ) then return 'LIN', wez.nerdfonts.dev_linux or '', palette.ui.important_local end
103 if triple:find( 'bsd', 1, true ) then return 'BSD', wez.nerdfonts.dev_freebsd or '󰣠 ', palette.ui.important_local end
104 return 'LOC', wez.nerdfonts.cod_terminal or '', palette.ui.important_local
105105end
107107local domain_label = function ( domain )
108 if domain == 'unix' then return 'MUX', wez.nerdfonts.cod_server or wez.nerdfonts.cod_terminal or '□', palette.info end
108 if domain == 'unix' then return 'MUX', wez.nerdfonts.cod_server or wez.nerdfonts.cod_terminal or '', palette.info end
109109 if not domain or domain == 'local' or domain == 'Local' then return host_domain() end
110 if domain:find( '^WSL:', 1, false ) then return 'WSL', wez.nerdfonts.dev_linux or '□', palette.ui.important_local end
111 if domain:find( '^scope:', 1, false ) then return 'EXE', wez.nerdfonts.cod_gear or '□', palette.warning end
112 return ( domain:upper():gsub( '[^%w]', '' ):sub( 1, 3 ) .. 'LOC' ):sub( 1, 3 ), wez.nerdfonts.cod_terminal or '□', palette.ui.important_local
110 if domain:find( '^WSL:', 1, false ) then return 'WSL', wez.nerdfonts.dev_linux or '', palette.ui.important_local end
111 if domain:find( '^scope:', 1, false ) then return 'EXE', wez.nerdfonts.cod_gear or '', palette.warning end
112 return ( domain:upper():gsub( '[^%w]', '' ):sub( 1, 3 ) .. 'LOC' ):sub( 1, 3 ), wez.nerdfonts.cod_terminal or '', palette.ui.important_local
113113end
115115wez.on( 'format-tab-title', function ( tab, tabs, panes, config, hover, max_width )
202202 cfg.enable_tab_bar = true
203203 cfg.hide_tab_bar_if_only_one_tab = false
204204 cfg.use_fancy_tab_bar = false
205 cfg.tab_max_width = 64
205 cfg.tab_max_width = 128
206206 cfg.show_tabs_in_tab_bar = true
207207 cfg.show_new_tab_button_in_tab_bar = false
208208 cfg.tab_bar_at_bottom = true
209 cfg.status_update_interval = 1000
210209end

wezterm/bugabinga/window.lua

Modified

+2 / −2 text lines

11local wez = require 'wezterm'
33return function ( cfg )
4 cfg.window_background_opacity = 1.0
5 cfg.window_decorations = 'RESIZE|NONE'
4
5 cfg.window_decorations = wez.target_triple:find( 'windows', 1, true ) and 'RESIZE' or 'RESIZE|NONE'
66 cfg.use_resize_increments = true
77 cfg.adjust_window_size_when_changing_font_size = false

wezterm/bugabinga/workspace_switcher.lua

Modified

+15 / −2 text lines

5454 return choice_table
5555end
57local function is_dir( path )
58 -- wezterm.read_dir returns children only if path itself is a directory.
59 local ok, result = pcall( wezterm.read_dir, path )
60 return ok and result ~= nil
61end
5763local function get_workspace_dir_elements( choice_table, workspace_ids )
5864 local workspace_dir = wezterm.home_dir .. '/Workspace'
59 local stdout = run_child_process { 'find', workspace_dir, '-mindepth', '1', '-maxdepth', '1', '-type', 'd' }
60 local paths = wezterm.split_by_newlines( stdout )
65 local ok, entries = pcall( wezterm.read_dir, workspace_dir )
66 if not ok or not entries then return choice_table end
68 local paths = {}
69 for _, entry in ipairs( entries ) do
70 if is_dir( entry ) then
71 table.insert( paths, entry )
72 end
73 end
6174 table.sort( paths )
6275 for _, path in ipairs( paths ) do
6376 add_path_element( choice_table, workspace_ids, path )

wezterm/wezterm.lua

Modified

+0 / −1 text lines

1111require 'bugabinga.status' ( cfg )
1212require 'bugabinga.launch' ( cfg )
1313require 'bugabinga.wsl' ( cfg )
14require 'bugabinga.exec_domains' ( cfg )
1615-- logs key presses
1716-- cfg.debug_key_events = true,