agileflow 4.0.0-alpha.18 → 4.0.0-alpha.19
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
|
@@ -308,6 +308,14 @@ const TAB_KEYBINDS = [
|
|
|
308
308
|
action: ["select-window", "-t", `:${n}`],
|
|
309
309
|
hint: `Alt+${n} → switch to tab ${n}`,
|
|
310
310
|
})),
|
|
311
|
+
// Alt+0 jumps to the LAST tab — matches Chrome's Ctrl+9 muscle
|
|
312
|
+
// memory (the 0 key sits naturally to the right of 9). tmux's
|
|
313
|
+
// `:$` is the alias for the last window in the session.
|
|
314
|
+
{
|
|
315
|
+
key: "M-0",
|
|
316
|
+
action: ["select-window", "-t", ":$"],
|
|
317
|
+
hint: "Alt+0 → switch to last tab",
|
|
318
|
+
},
|
|
311
319
|
// Browser-style cycling. Bind M-S-Tab AND M-BTab — terminals split
|
|
312
320
|
// on which escape sequence they emit for Shift+Tab, so binding both
|
|
313
321
|
// covers either path. Note: some window managers (GNOME, KDE)
|
|
@@ -241,6 +241,13 @@ function applyTabFormat(sessionName, runner, opts = {}) {
|
|
|
241
241
|
`#[bg=${PILL_BG},fg=${ACCENT}] #h ` +
|
|
242
242
|
`#[fg=${PILL_BG},bg=${BG}]${HALF_ROUND_CLOSE}`;
|
|
243
243
|
|
|
244
|
+
// Reduce escape-time so pressing Esc inside command-prompt (Alt+n
|
|
245
|
+
// worktree-name prompt, etc.) cancels immediately. tmux's default
|
|
246
|
+
// is 500ms — it waits for a follow-up key in case Esc is the start
|
|
247
|
+
// of an Alt+key sequence. 25ms is the common "snappy Esc" value used
|
|
248
|
+
// by tmux power-user configs (Oh My Tmux, gpakosz/.tmux, etc.).
|
|
249
|
+
runner.runSync(["set-option", "-sg", "escape-time", "25"]);
|
|
250
|
+
|
|
244
251
|
// Apply each option with the correct tmux scope. Session-scope opts
|
|
245
252
|
// (status-style, status-left/right, status-justify) take
|
|
246
253
|
// `-t <session>`. Window-scope opts (window-status-format,
|