@k-electron/k-bench 0.1.2 → 0.1.3
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/js/src/server/tmux.js +11 -0
- package/dist/web/apple-touch-icon.png +0 -0
- package/dist/web/assets/index-BS0mVPHI.js +68 -0
- package/dist/web/assets/index-BrnEjylp.css +2 -0
- package/dist/web/favicon.svg +5 -0
- package/dist/web/index.html +4 -2
- package/package.json +1 -1
- package/dist/web/assets/index-BVmTGBnw.js +0 -68
- package/dist/web/assets/index-CwiAyjF8.css +0 -2
|
@@ -39,6 +39,10 @@ function sessionCommand(folder) {
|
|
|
39
39
|
ownerShell(),
|
|
40
40
|
];
|
|
41
41
|
}
|
|
42
|
+
/** Binds a wheel key in a copy-mode table to scroll one line, as tmux's default does five. */
|
|
43
|
+
function scrollOneLine(table, key, command) {
|
|
44
|
+
return ["bind-key", "-T", table, key, "select-pane", "\\;", "send-keys", "-X", command];
|
|
45
|
+
}
|
|
42
46
|
/** Applied to the instance's tmux server whenever a Session is created (idempotent). */
|
|
43
47
|
function serverConfiguration() {
|
|
44
48
|
return [
|
|
@@ -50,6 +54,13 @@ function serverConfiguration() {
|
|
|
50
54
|
["set", "-g", "set-clipboard", "on"],
|
|
51
55
|
["set", "-g", "terminal-features[100]", "xterm*:clipboard"],
|
|
52
56
|
["set", "-g", "history-limit", "50000"],
|
|
57
|
+
// One line of History per wheel report, so a phone's swipe can follow the finger line
|
|
58
|
+
// by line. The web app sends several reports per desktop wheel step to keep that feel
|
|
59
|
+
// (`web/src/wheelReports.ts`).
|
|
60
|
+
...["copy-mode", "copy-mode-vi"].flatMap((table) => [
|
|
61
|
+
scrollOneLine(table, "WheelUpPane", "scroll-up"),
|
|
62
|
+
scrollOneLine(table, "WheelDownPane", "scroll-down"),
|
|
63
|
+
]),
|
|
53
64
|
["set", "-g", "window-size", "latest"],
|
|
54
65
|
["setw", "-g", "monitor-bell", "on"],
|
|
55
66
|
["set", "-g", "bell-action", "any"],
|
|
Binary file
|