agileflow 4.0.0-alpha.20 → 4.0.0-alpha.21
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 +1 -1
- package/src/runtime/launch/tmux.js +10 -3
package/package.json
CHANGED
|
@@ -244,9 +244,16 @@ function applyTabFormat(sessionName, runner, opts = {}) {
|
|
|
244
244
|
// Reduce escape-time so pressing Esc inside command-prompt (Alt+n
|
|
245
245
|
// worktree-name prompt, etc.) cancels immediately. tmux's default
|
|
246
246
|
// is 500ms — it waits for a follow-up key in case Esc is the start
|
|
247
|
-
// of an Alt+key sequence.
|
|
248
|
-
//
|
|
249
|
-
runner.runSync(["set-option", "-sg", "escape-time", "
|
|
247
|
+
// of an Alt+key sequence. 0ms is "treat Esc as Esc immediately"
|
|
248
|
+
// and matches what most modern terminals support.
|
|
249
|
+
runner.runSync(["set-option", "-sg", "escape-time", "0"]);
|
|
250
|
+
// Force emacs key bindings in the command-prompt so Esc cancels
|
|
251
|
+
// the prompt instead of entering vi-normal mode (which makes the
|
|
252
|
+
// prompt look like it changed color but never closes). If the
|
|
253
|
+
// user's .tmux.conf set status-keys vi globally, our per-session
|
|
254
|
+
// override wins for AgileFlow sessions.
|
|
255
|
+
runner.runSync(["set-option", "-g", "status-keys", "emacs"]);
|
|
256
|
+
runner.runSync(["set-option", "-g", "mode-keys", "emacs"]);
|
|
250
257
|
|
|
251
258
|
// Apply each option with the correct tmux scope. Session-scope opts
|
|
252
259
|
// (status-style, status-left/right, status-justify) take
|