hopdeck 1.2.4 → 1.2.5

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/CHANGELOG.md CHANGED
@@ -1,9 +1,16 @@
1
1
  # Cambios
2
2
 
3
+ ## 1.2.5
4
+
5
+ ### Cambiado
6
+ - **En Linux y macOS el terminal integrado es ahora el modo por defecto**, también con `tmux` instalado, para que la vista previa al pasar el cursor y las imágenes funcionen igual que en Windows. El modo tmux sigue disponible con `HOPDECK_TMUX=1` y se usa solo si el terminal integrado no está disponible.
7
+ - **La vista previa de imagen es más pequeña** (como mucho 36×9 celdas): es una vista rápida, no un visor. Para verla en grande, clic sobre `[Image #N]`.
8
+ - **En Windows Terminal el Sixel se activa sin esperar la respuesta del terminal**, que no siempre atraviesa ConPTY. `HOPDECK_SIXEL=0` lo apaga.
9
+ - **Logotipo con el texto convertido a trazados** (Inter 800): se ve igual en cualquier equipo y en la página de npm. Se añaden copias PNG en `docs/`.
10
+
3
11
  ## 1.2.4
4
12
 
5
13
  ### Nuevo
6
- - **Logotipo con el texto convertido a trazados** (Inter 800): se ve igual en cualquier equipo y en la página de npm, sin depender de la fuente instalada. Se añaden copias PNG en `docs/`.
7
14
  - **Imagen real al pasar el cursor por `[Image #N]`** en terminales con Sixel (Windows Terminal 1.22 o posterior, iTerm2, WezTerm, foot, Konsole…). Hopdeck pregunta al terminal si lo admite y, si es así, dibuja la imagen con todos sus píxeles dentro del cuadro del hover; el texto del chat que queda debajo se repinta al apartar el cursor. Si no lo admite se mantiene la vista de bloques. `HOPDECK_SIXEL=1` lo fuerza y `HOPDECK_SIXEL=0` lo desactiva.
8
15
  - **Clic en `[Image #N]` abre la imagen en grande** en el visor de imágenes del sistema, a su tamaño real. La vista rápida del terminal solo puede dibujar dos píxeles por carácter: una captura de pantalla de 1917 px de ancho quedaba en unos 50 y no se podía leer. Arrastrar para copiar texto y hacer clic en otro texto siguen igual. El cuadro del hover avisa («clic: abrir en grande») y es algo más grande.
9
16
 
package/README.en.md CHANGED
@@ -169,7 +169,7 @@ Each command has **one single form**. Any other word, or a variant such as `inst
169
169
  | System | Works with | Notes |
170
170
  |---|---|---|
171
171
  | **Windows** | PowerShell, CMD, Windows Terminal | All features. This is where it has been tested the most. |
172
- | **macOS / Linux** | Any terminal with color | With `tmux` installed it uses tmux panes (the list responds to the wheel and clicks, but no hover preview or chat images); without `tmux`, it uses a built-in terminal with every feature. |
172
+ | **macOS / Linux** | Any terminal with color | It uses the built-in terminal, with every feature (hover preview, chat images). If you prefer `tmux` panes, run `HOPDECK_TMUX=1 hopdeck` (the list responds to the wheel and clicks, but no hover preview or chat images). |
173
173
  | **WSL** | Same as Linux | Reads WSL's history, which is separate from Windows' (see [troubleshooting](#troubleshooting)). |
174
174
 
175
175
  ## Configuration
@@ -200,7 +200,7 @@ Keys in `~/.hopdeck.json` you can edit by hand:
200
200
  | `maxImages` | Max images per conversation in the gallery | `200` |
201
201
  | `previewMsgs` | Messages shown in the preview | `12` |
202
202
 
203
- Other variables: `HOPDECK_EMBED=1` forces the built-in terminal, `HOPDECK_NOTMUX=1` avoids tmux and `HOPDECK_NOEMBED=1` disables it; `HOPDECK_CONFIG` and `HOPDECK_CACHE` change the paths of your preferences and the cache.
203
+ Other variables: `HOPDECK_TMUX=1` uses tmux panes on Linux/macOS, `HOPDECK_EMBED=1` forces the built-in terminal, `HOPDECK_NOTMUX=1` avoids tmux and `HOPDECK_NOEMBED=1` disables it; `HOPDECK_CONFIG` and `HOPDECK_CACHE` change the paths of your preferences and the cache.
204
204
 
205
205
  </details>
206
206
 
package/README.md CHANGED
@@ -169,7 +169,7 @@ Cada comando tiene **una sola forma**. Cualquier otra palabra, o una variante co
169
169
  | Sistema | Funciona con | Notas |
170
170
  |---|---|---|
171
171
  | **Windows** | PowerShell, CMD, Windows Terminal | Todas las funciones. Es donde más se ha probado. |
172
- | **macOS / Linux** | Cualquier terminal con color | Con `tmux` instalado usa paneles de tmux (la lista responde a la rueda y al clic, pero sin vista previa al pasar el cursor ni imágenes del chat); sin `tmux`, usa un terminal integrado con todas las funciones. |
172
+ | **macOS / Linux** | Cualquier terminal con color | Usa el terminal integrado, con todas las funciones (vista previa al pasar el cursor, imágenes del chat). Si prefieres paneles de `tmux`, lanza `HOPDECK_TMUX=1 hopdeck` (la lista responde a la rueda y al clic, pero sin vista previa al pasar el cursor ni imágenes). |
173
173
  | **WSL** | Igual que Linux | Lee el historial de WSL, que es distinto del de Windows (ver [problemas frecuentes](#problemas-frecuentes)). |
174
174
 
175
175
  ## Configuración
@@ -200,7 +200,7 @@ Claves de `~/.hopdeck.json` que puedes editar a mano:
200
200
  | `maxImages` | Imágenes máximas por conversación en la galería | `200` |
201
201
  | `previewMsgs` | Mensajes mostrados en la vista previa | `12` |
202
202
 
203
- Otras variables: `HOPDECK_EMBED=1` fuerza el terminal integrado, `HOPDECK_NOTMUX=1` evita tmux y `HOPDECK_NOEMBED=1` lo desactiva; `HOPDECK_CONFIG` y `HOPDECK_CACHE` cambian las rutas de tus preferencias y de la caché.
203
+ Otras variables: `HOPDECK_TMUX=1` usa paneles de tmux en Linux/macOS, `HOPDECK_EMBED=1` fuerza el terminal integrado, `HOPDECK_NOTMUX=1` evita tmux y `HOPDECK_NOEMBED=1` lo desactiva; `HOPDECK_CONFIG` y `HOPDECK_CACHE` cambian las rutas de tus preferencias y de la caché.
204
204
 
205
205
  </details>
206
206
 
package/bin/hopdeck.js CHANGED
@@ -964,7 +964,8 @@ async function shownSession(x) {
964
964
 
965
965
  // ── Imágenes reales (Sixel): se usan si el terminal las admite; si no, la vista rápida con medios bloques ──
966
966
  /** HOPDECK_SIXEL=1 las fuerza, =0 las apaga; sin definir, se usan si el terminal dijo que las admite (consulta DA1 al arrancar). */
967
- const sixelOn = () => process.env.HOPDECK_SIXEL === '1' || (process.env.HOPDECK_SIXEL !== '0' && E.sixelDetected);
967
+ // En Windows Terminal (1.22+) la respuesta del terminal no siempre atraviesa ConPTY, así que ahí se activa sin esperarla.
968
+ const sixelOn = () => process.env.HOPDECK_SIXEL === '1' || (process.env.HOPDECK_SIXEL !== '0' && (E.sixelDetected || (WIN && !!process.env.WT_SESSION)));
968
969
 
969
970
  /**
970
971
  * Quita de la entrada las respuestas del terminal a nuestras consultas y las guarda en `st`:
@@ -1025,7 +1026,7 @@ function hoverPopup(hv, rw, th) {
1025
1026
  const d = g.dec.get(0), lab = ` [Image #${hv.n}] `;
1026
1027
  let rows, tw, sx = null;
1027
1028
  if (d && d.rgba && sixelOn()) { // imagen real: se deja un hueco en blanco del tamaño de la imagen y se dibuja encima con Sixel
1028
- const cw = E.cell.w, ch = E.cell.h, maxCols = Math.max(8, Math.min(rw - 6, 140)), maxRows = Math.max(2, th - 5);
1029
+ const cw = E.cell.w, ch = E.cell.h, maxCols = Math.max(8, Math.min(rw - 6, 36)), maxRows = Math.max(2, Math.min(th - 5, 9)); // vista previa pequeña: como mucho 36×9 celdas
1029
1030
  const k = Math.min((maxCols * cw) / d.w, (maxRows * ch) / d.h, 3);
1030
1031
  const iw = Math.max(1, Math.min(maxCols, Math.round((d.w * k) / cw))), ih = Math.max(1, Math.min(maxRows, Math.round((d.h * k) / ch))), key = `sx:${iw}x${ih}`;
1031
1032
  let data = g.cache.get(key);
@@ -1689,9 +1690,12 @@ async function run() {
1689
1690
  if (!SIDEBAR && process.env.HOPDECK_INSIDE) { console.log(T.inside); return; }
1690
1691
  if (!SIDEBAR) await offerShortcut(); // primera vez: ¿quieres que `claude` abra Hopdeck?
1691
1692
  if (!SIDEBAR) {
1692
- const preferTmux = !WIN && !process.env.HOPDECK_NOTMUX && !process.env.HOPDECK_EMBED && hasTmux();
1693
- if (preferTmux) return bootstrap();
1693
+ // Por defecto se usa el terminal integrado (vista previa al pasar el cursor, imágenes). tmux solo con HOPDECK_TMUX=1,
1694
+ // o como alternativa si el terminal integrado no está disponible.
1695
+ const tmuxOk = !WIN && !process.env.HOPDECK_NOTMUX && !process.env.HOPDECK_EMBED && hasTmux();
1696
+ if (tmuxOk && process.env.HOPDECK_TMUX) return bootstrap();
1694
1697
  if (!process.env.HOPDECK_NOEMBED) { E.deps = loadDeps(); EMBED = !!E.deps; }
1698
+ if (!EMBED && tmuxOk) return bootstrap();
1695
1699
  }
1696
1700
  process.on('exit', () => { if (active) { try { process.stdout.write('\x1b[?1000l\x1b[?1003l\x1b[?1006l\x1b[?25h\x1b[?1049l'); } catch { /* */ } } });
1697
1701
  process.on('SIGTERM', () => quit(0));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hopdeck",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "description": "Selector visual de proyectos y conversaciones para Claude Code, en la terminal: salta entre proyectos sin hacer cd.",
5
5
  "author": "fabriciodev26",
6
6
  "license": "MIT",