@volter/supercode-teams 0.2.76 → 0.2.77

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/terminal-look.mjs +11 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volter/supercode-teams",
3
- "version": "0.2.76",
3
+ "version": "0.2.77",
4
4
  "type": "module",
5
5
  "description": "A machine daemon serving this machine's doors, and a local or remote Teams server for shared session discovery, OpenTelemetry ingestion and access to enrolled machines.",
6
6
  "license": "MIT",
package/terminal-look.mjs CHANGED
@@ -129,6 +129,17 @@ export function weztermConfig(profile, { fontDirs = existsSync(TERMINAL_FONTS) ?
129
129
  // arming the watcher waits on fseventsd: open windows stopped taking input for up to 2.3 s after each popup's
130
130
  // launch (sampled on macOS 26). The file is written for each launch, so the next process takes any change.
131
131
  'config.automatically_reload_config = false',
132
+ // Terminal.app's mouse: a drag, double or triple click selects text in the window and the highlight stays after
133
+ // the button comes up, for Cmd+C to copy. The pane's tmux asks for the mouse (so the wheel scrolls its history);
134
+ // without these the left button went to tmux, whose copy-mode drops the highlight on release.
135
+ 'local act = wezterm.action',
136
+ 'config.mouse_bindings = {',
137
+ ...[[1, 'Cell'], [2, 'Word'], [3, 'Line']].flatMap(([streak, unit]) => [
138
+ ` { event = { Down = { streak = ${streak}, button = 'Left' } }, mods = 'NONE', mouse_reporting = true, action = act.SelectTextAtMouseCursor '${unit}' },`,
139
+ ` { event = { Drag = { streak = ${streak}, button = 'Left' } }, mods = 'NONE', mouse_reporting = true, action = act.ExtendSelectionToMouseCursor '${unit}' },`,
140
+ ` { event = { Up = { streak = ${streak}, button = 'Left' } }, mods = 'NONE', mouse_reporting = true, action = act.CompleteSelection 'PrimarySelection' },`,
141
+ ]),
142
+ '}',
132
143
  'return config',
133
144
  '',
134
145
  ];