@towles/tool 0.0.125 → 0.0.127
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -244,10 +244,17 @@ function App() {
|
|
|
244
244
|
if (!data?.dir) return;
|
|
245
245
|
const editor = preferredEditor();
|
|
246
246
|
try {
|
|
247
|
+
// Strip tmux env vars so the editor (and any terminal it opens) isn't
|
|
248
|
+
// locked into our outer tmux session.
|
|
249
|
+
const cleanEnv = { ...process.env };
|
|
250
|
+
delete cleanEnv.TMUX;
|
|
251
|
+
delete cleanEnv.TMUX_PANE;
|
|
252
|
+
delete cleanEnv.TMUX_PLUGIN_MANAGER_PATH;
|
|
247
253
|
const proc = Bun.spawn([editor, data.dir], {
|
|
248
254
|
stdout: "ignore",
|
|
249
255
|
stderr: "ignore",
|
|
250
256
|
stdin: "ignore",
|
|
257
|
+
env: cleanEnv,
|
|
251
258
|
});
|
|
252
259
|
showToast(`opening ${data.dir} in ${editor}`, "success");
|
|
253
260
|
void proc.exited.then((code) => {
|
|
@@ -410,6 +417,13 @@ function App() {
|
|
|
410
417
|
}
|
|
411
418
|
|
|
412
419
|
// --- Normal mode keybindings ---
|
|
420
|
+
// Help: "?" arrives as {name: "/", shift: true} under Kitty keyboard protocol,
|
|
421
|
+
// or as {name: "?"} in raw mode. Match both.
|
|
422
|
+
if (key.name === "?" || (key.name === "/" && key.shift)) {
|
|
423
|
+
setModal("help");
|
|
424
|
+
return;
|
|
425
|
+
}
|
|
426
|
+
|
|
413
427
|
// Alt+Up/Down → reorder session ±1. Alt+Shift+Up/Down → jump to top/bottom.
|
|
414
428
|
if ((key.meta || key.option) && (key.name === "up" || key.name === "down")) {
|
|
415
429
|
const focused = focusedSession();
|
|
@@ -504,9 +518,6 @@ function App() {
|
|
|
504
518
|
case "n":
|
|
505
519
|
createNewSession();
|
|
506
520
|
break;
|
|
507
|
-
case "?":
|
|
508
|
-
setModal("help");
|
|
509
|
-
break;
|
|
510
521
|
default: {
|
|
511
522
|
if (key.number) {
|
|
512
523
|
const idx = Number.parseInt(key.name, 10) - 1;
|