claude-pager 0.3.4-beta.0 → 0.3.4-beta.1
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/dist/cli/run.d.ts.map +1 -1
- package/dist/cli/run.js +15 -0
- package/dist/cli/run.js.map +1 -1
- package/package.json +1 -1
package/dist/cli/run.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/cli/run.ts"],"names":[],"mappings":"AAGA,wBAAgB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/cli/run.ts"],"names":[],"mappings":"AAGA,wBAAgB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAmDxC"}
|
package/dist/cli/run.js
CHANGED
|
@@ -17,9 +17,24 @@ function run(args) {
|
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
19
19
|
// Ensure tmux propagates window titles to the terminal (Kitty, etc.)
|
|
20
|
+
// and that mouse-wheel scrolls the scrollback instead of cycling shell history.
|
|
20
21
|
try {
|
|
21
22
|
(0, node_child_process_1.execFileSync)('tmux', ['set-option', '-g', 'set-titles', 'on'], { timeout: 1000 });
|
|
22
23
|
(0, node_child_process_1.execFileSync)('tmux', ['set-option', '-g', 'set-titles-string', '#W'], { timeout: 1000 });
|
|
24
|
+
(0, node_child_process_1.execFileSync)('tmux', ['set-option', '-g', 'mouse', 'on'], { timeout: 1000 });
|
|
25
|
+
// Wheel up: enter copy-mode and scroll for plain shells; pass through for
|
|
26
|
+
// alternate-screen TUIs (Claude Code, vim, less…) so they handle the wheel.
|
|
27
|
+
(0, node_child_process_1.execFileSync)('tmux', [
|
|
28
|
+
'bind-key', '-n', 'WheelUpPane',
|
|
29
|
+
'if-shell', '-F', '-t', '=',
|
|
30
|
+
'#{?pane_in_mode,1,#{alternate_on}}',
|
|
31
|
+
'send-keys -M',
|
|
32
|
+
'select-pane -t =; copy-mode -e; send-keys -M',
|
|
33
|
+
], { timeout: 1000 });
|
|
34
|
+
(0, node_child_process_1.execFileSync)('tmux', [
|
|
35
|
+
'bind-key', '-n', 'WheelDownPane',
|
|
36
|
+
'select-pane -t = ; send-keys -M',
|
|
37
|
+
], { timeout: 1000 });
|
|
23
38
|
}
|
|
24
39
|
catch {
|
|
25
40
|
// tmux not running yet — options will be set after session creation
|
package/dist/cli/run.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../src/cli/run.ts"],"names":[],"mappings":";;AAGA,
|
|
1
|
+
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../src/cli/run.ts"],"names":[],"mappings":";;AAGA,kBAmDC;AAtDD,2DAAkD;AAClD,yCAAqC;AAErC,SAAgB,GAAG,CAAC,IAAc;IAChC,mCAAmC;IACnC,MAAM,OAAO,GAAG,IAAA,oBAAQ,EAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IACxC,MAAM,WAAW,GAAG,UAAU,OAAO,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;IAEvD,oDAAoD;IACpD,MAAM,UAAU,GAAG,CAAC,QAAQ,EAAE,GAAG,IAAI,CAAC,CAAC;IAEvC,qCAAqC;IACrC,IAAI,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;QACrB,6CAA6C;QAC7C,OAAO,CAAC,GAAG,CAAC,yBAAyB,OAAO,CAAC,GAAG,CAAC,SAAS,6BAA6B,CAAC,CAAC;QACzF,IAAA,iCAAY,EAAC,QAAQ,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QACnD,OAAO;IACT,CAAC;IAED,qEAAqE;IACrE,gFAAgF;IAChF,IAAI,CAAC;QACH,IAAA,iCAAY,EAAC,MAAM,EAAE,CAAC,YAAY,EAAE,IAAI,EAAE,YAAY,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