Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,27 @@ Todas las versiones publicables del plugin. El formato sigue
> `changeNotes` en `build.gradle.kts` —que es lo que sale en la ficha del Marketplace y
> en el diálogo de actualización del IDE— y este fichero.

## [2.33.0]

### Añadido
- **Quick Add con un atajo del sistema**, opcional y desactivado por defecto: abre el diálogo
existente cuando el IDE está abierto aunque otra aplicación tenga el foco.
- **Configuración independiente del Keymap** en *Settings → Tools → Tasklane Global Quick Add*:
combinación de teclas, último proyecto activo o un proyecto abierto fijo, estado de registro
y reintento. Los ajustes son locales a la instalación y no se sincronizan.
- Integración con los atajos registrados de **Windows y macOS**, las capturas pasivas de **X11**
y el portal **Global Shortcuts de Wayland**. Se muestran conflictos, permisos rechazados y
falta de soporte; no se captura todo el teclado ni se utiliza XWayland como sustituto.

### Compatibilidad y límites
- El IDE debe estar abierto y el proyecto de destino disponible; un destino fijo cerrado no
redirige la tarea a otro proyecto. Se respeta el repositorio activo y su modo de solo lectura.
- En Wayland, el escritorio autoriza la combinación efectiva y decide si permite poner la
ventana en primer plano. La disponibilidad depende del portal del escritorio.
- Windows reserva F12. El adaptador de macOS admite F1–F20 y posiciones de teclado latinas;
F21–F24 se indican como no disponibles.
- Se conservan el atajo interno del IDE y el formato de las tareas. No hay migración de datos.

## [2.32.0]
Escribir Markdown y leer código, pedida por el usuario a la vista de un `behavior` pegado a su
recuadro y de un bloque de log que no se podía copiar de una vez.
Expand Down
13 changes: 13 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,19 @@ intellijPlatform {
// junto con pluginVersion; el historial largo vive en CHANGELOG.md.
changeNotes = provider {
"""
<h3>2.33.0 &mdash; optional system-wide Quick Add</h3>
<ul>
<li>Open the existing <b>New Task</b> dialog while another application is focused,
with an optional system-wide shortcut. The IDE must be running.</li>
<li>Configure the combination and the last active or a fixed open project in
<b>Settings &rarr; Tools &rarr; Tasklane Global Quick Add</b>. Disabled by default;
machine-local settings, visible registration status, conflicts and retry.</li>
<li>Native registered shortcuts on Windows and macOS, passive grabs on X11,
and the Global Shortcuts portal on supported Wayland desktops. No whole-keyboard
monitoring. Wayland controls consent, the effective binding and foreground focus.</li>
<li>The IDE-local Keymap action and task data format are unchanged.
Windows F12 and macOS F21&ndash;F24 are unavailable.</li>
</ul>
<h3>2.32.0 &mdash; lists that continue, and code you can copy</h3>
<ul>
<li>In the task dialog, <b>Enter continues a list</b>: the next number,
Expand Down
20 changes: 19 additions & 1 deletion docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Community que descargar—, y ahí sí se detecta cualquier uso accidental de un

```bash
./gradlew test # tests de dominio, búsqueda, almacén y renderer, sin IDE
./gradlew buildPlugin # -> build/distributions/tasklane-2.32.0.zip
./gradlew buildPlugin # -> build/distributions/tasklane-2.33.0.zip
./gradlew runIde # lanza un IDE sandbox con el plugin
./gradlew verifyPluginProjectConfiguration # chequea targets y sinceBuild
./gradlew verifyPlugin -PlocalIdePath= # Plugin Verifier (descarga IDEs completos)
Expand All @@ -59,6 +59,24 @@ por escenario en los tres sistemas. Los techos son los presupuestos de cada fase
EDT, 50 ms para editar, 150 MB de heap— y no cifras de un portátil, así que un runner más
lento no los rompe sin que algo haya empeorado. Deja las cifras de cada noche en un CSV.

## Preparar la 2.33.0 para Marketplace

El paquete publicable es `build/distributions/tasklane-2.33.0.zip`. Generarlo con la
plataforma mínima, no con la ruta de un IDE local, para incluir las opciones de búsqueda:

```bash
./gradlew test verifyPluginProjectConfiguration buildPlugin verifyPlugin -PlocalIdePath= --no-configuration-cache
```

Comprobar que el descriptor del ZIP y las notas indican `2.33.0`, que se incluye el índice
de opciones y que el verificador no informa incompatibilidades con los IDEs seleccionados.
Las pruebas unitarias no sustituyen la [comprobación real del atajo global](global-quick-add.md#verification-status)
en Windows, macOS, X11 y Wayland. El informe de esta preparación está en
[`release-2.33.0.md`](release-2.33.0.md); distingue resultados observados de pendientes.

La firma utiliza la configuración existente, si se proporcionan las credenciales de firma.
Preparar el ZIP no publica nada: la subida a Marketplace es una acción separada.

## Fases y versiones

**Una fase cerrada subía la versión media:** la fase N dejaba el plugin en `0.N.0`, y
Expand Down
4 changes: 2 additions & 2 deletions docs/global-quick-add-linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

Global Quick Add is opt-in and only runs while the IDE is open. The existing IDE-local Quick Add keymap action remains available if global registration fails.

- **X11:** Tasklane uses libxcb and requests passive grabs for the configured combination. If the X server reports that another client already owns the combination, choose another shortcut. Reapply the setting after changing the X11 keyboard mapping.
- **X11:** Tasklane uses libxcb and requests passive grabs for the configured combination. It releases the active keyboard grab before opening Quick Add so other keys can continue to reach the focused application. If the X server reports that another client already owns the combination, choose another shortcut. Reapply the setting after changing the X11 keyboard mapping.
- **Wayland:** Tasklane uses the desktop's [Global Shortcuts portal](https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.portal.GlobalShortcuts.html). The desktop may prompt you to approve or change the shortcut. Settings show the effective shortcut reported by the desktop. A missing portal, declined request, or empty grant leaves the shortcut unavailable; Tasklane does not fall back to XWayland or monitor keyboard input.

## Desktop verification

Unit tests cover registration, cleanup, conflict and cancellation handling, activation routing, and D-Bus wire signatures without connecting to a desktop. They do not establish whether an installed IDE will receive an actual key press or whether a compositor will raise its dialog.

On X11 and on a Wayland desktop that implements the portal, enable Global Quick Add in an installed IDE and switch to a different application. Press the shortcut, confirm that the dialog appears in the intended IDE project, and confirm that holding it does not create duplicate dialogs. Change the shortcut, then disable it, and confirm that old bindings stop responding. On Wayland, also try declining the prompt and confirm the IDE-local action still works. Verify native focus separately: the desktop may restrict foreground activation even when it delivers the shortcut.
On X11 and on a Wayland desktop that implements the portal, enable Global Quick Add in an installed IDE and switch to a different application. Press the shortcut, confirm that the dialog appears in the intended IDE project, and confirm that holding it does not create duplicate dialogs. On X11, also type an unrelated key while holding the shortcut and confirm it reaches the focused application. Change the shortcut, then disable it, and confirm that old bindings stop responding. On Wayland, also try declining the prompt and confirm the IDE-local action still works. Verify native focus separately: the desktop may restrict foreground activation even when it delivers the shortcut.
24 changes: 23 additions & 1 deletion docs/manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ O con el zip de una [release de GitHub](https://github.com/palmerovicdev/tasklan
que es lo que produce este repositorio:

```bash
./gradlew buildPlugin # -> build/distributions/tasklane-2.29.0.zip
./gradlew buildPlugin # -> build/distributions/tasklane-2.33.0.zip
```

*Settings → Plugins → ⚙ → Install Plugin from Disk…*
Expand Down Expand Up @@ -525,6 +525,28 @@ siempre—; si no, espera a la próxima. Con las marcas apagadas no sale.

## Quick Add

### Atajo del sistema (2.33.0)

Además del atajo interno, *Settings → Tools → Tasklane Global Quick Add* permite activar
un atajo que funciona con otra aplicación enfocada. El IDE debe seguir abierto.
Está desactivado por defecto y no modifica el Keymap.

Se pueden elegir los modificadores y la tecla, usar el último proyecto activo o fijar la
ruta absoluta de un proyecto abierto. La tarea se crea en su repositorio activo; si el destino
fijo está cerrado o el repositorio es de solo lectura, se avisa en lugar de escribir en otro.
**Apply** guarda los cambios y registra el atajo; **Retry registration** reintenta la
configuración guardada. El estado muestra el registro, los conflictos o la falta de soporte.

Windows y macOS usan atajos registrados; X11, capturas pasivas; Wayland, el portal del
escritorio, que puede pedir permiso, cambiar la combinación o rechazarla. El escritorio
controla también si permite traer el IDE al frente. No hay captura general del teclado ni
sustitución por XWayland. Windows reserva F12 y macOS no admite F21–F24 en este adaptador.
Los ajustes se guardan localmente, sin Settings Sync.

La [guía de Global Quick Add](global-quick-add.md) detalla límites y comprobaciones.

### Atajo dentro del IDE

`⌘⌥R` abre **el mismo diálogo** que *New Task*, desde cualquier sitio del IDE y sin
pasar por la Tool Window. Hasta la `0.6.7` abría un popup compacto propio: se escribía
más rápido, pero tenía la mitad de los campos —sin vencimiento, sin etiquetas, sin
Expand Down
33 changes: 33 additions & 0 deletions docs/release-2.33.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Preparación de Tasklane 2.33.0

**Estado: validación en curso; aún no publicar.** Esta preparación no ejecuta ninguna subida
ni modifica credenciales de Marketplace.

## Contenido

- Atajo global opcional y desactivado por defecto; ajustes propios de combinación y proyecto.
- Integraciones Windows/macOS/X11 y portal Wayland compatible, con estado de disponibilidad.
- Versión `2.33.0` sincronizada entre Gradle, changelog y notas del descriptor generado.
- Manual, guía del atajo, descripción de Marketplace y documentación de desarrollo actualizados.
- Sin migración del formato de tareas. La configuración global es local y no se sincroniza.

## Comprobaciones

- Pruebas previas de la funcionalidad: 34 aprobadas.
- Suite previa: 1.108 pruebas, 1.087 aprobadas, 21 omitidas, sin fallos ni errores.
- Build anterior: comprobación local, no sustituye el build de release de esta versión.
- Build de release, opciones de búsqueda y Plugin Verifier: en curso.
- Verificación independiente de concurrencia y recursos nativos: en curso.
- Pruebas reales con el IDE en segundo plano en Windows, macOS, X11 y Wayland: pendientes.

## Artefacto previsto

`build/distributions/tasklane-2.33.0.zip`. Se registrarán aquí el hash y los resultados
observados cuando terminen las validaciones. No se considera válida una comprobación de
un ZIP anterior o construido antes de una corrección.

## Límites de publicación

La firma, si se utiliza, requiere las credenciales existentes del autor. No se generan ni
buscan claves privadas durante esta preparación. La aprobación final de Marketplace y la
subida del paquete son acciones separadas.
6 changes: 6 additions & 0 deletions docs/roadmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ Cada iteración elegida sale como **versión media** (ver la regla de versiones

---

## Preparada para publicación

- **2.33.0 · Atajo global configurable de Quick Add.** Implementado para Windows, macOS,
X11 y escritorios Wayland con portal compatible. La publicación y la validación real por
escritorio se registran por separado en [el informe de release](release-2.33.0.md).

## Hechas

Propuestas de revisiones anteriores que se eligieron:
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ pluginName = Tasklane
# en la tarjeta, aire en el codigo y boton de copiar en los bloques. Sin cambio de formato.
#
# Al subirla hay que tocar tambien changeNotes (build.gradle.kts) y CHANGELOG.md.
pluginVersion = 2.32.0
pluginVersion = 2.33.0

# Decision de docs/architecture.html §14, revisada el 2026-09-15: el suelo pasa de
# 252 (2025.2) a la build 261.27258.48, que es IntelliJ IDEA 2026.1.5. Se fija la build
Expand Down
7 changes: 7 additions & 0 deletions odd/tasks/global-quick-add.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@ Branch: codex/global-quick-add. Delivery: ask-on-risk (no publishing). Runner: .
- S3: "que funcione en todos los sistemas" Target Windows, macOS, Linux X11 and supported Wayland portals. The user accepted the explicit Wayland exception: "si, dale metele" in response to desktop-dependent support and visible unavailable status when support is absent. No keyboard surveillance or permission bypass.
- S4: Verification must distinguish deterministic policy/lifecycle tests from real desktop integration. Real foreground behavior requires installed IDE testing on each target desktop; unsupported desktops remain explicitly unavailable.

- S5: "papa, sube version y haz todo para poder subir a marketplace" Prepare version 2.33.0, release notes/changelog/docs, full release ZIP and compatibility validation. No publishing authorized.

## Tasks
- T1 [S1,S2]: inline — implementation and deterministic tests passed; native UI validation pending; no commit.
- T2 [S3,S4]: delegated — Windows/macOS implementations and 9 mock/ABI tests passed; desktop checks pending; no commit.
- T3 [S3,S4]: delegated — XCB and real D-Bus portal implementations and 15 tests passed; desktop checks pending; no commit.
- T4 [S1–S4]: inline coordination / delegated long checks and independent verification — docs, integration tests, build and review; pending; Risk items 4 (async lifecycle), 5 (native dependencies), 6 (foreground behavior requires real desktops).

- T5 [S5]: inline metadata/docs; delegated long release checks; pending.

## Log
- L1: "hay alguna forma de hacer que desde cualquier lugar no solo dentro del ide e incluso si el ide no esta enfocado que se pueda abrir el dialog de agregar todo?"
- L2: "vamos a revisar a fondo la posiblidad y a hacer esto configurable por completo, pero si, hazlo"
Expand All @@ -30,3 +34,6 @@ Branch: codex/global-quick-add. Delivery: ask-on-risk (no publishing). Runner: .
- L12: Controller coalescing RED reproduced 5 dialogs queued instead of 1; generation-tagged pending delivery fixed it. Canonical focused GREEN: 34 tests, zero failures/errors/skips. Full suite XML: 1,108 tests, zero failures/errors, 21 skipped (1,087 passed). Build worker completed but quota interrupted its final report; parent reran exact cached SDK test/buildPlugin command, exit 0, BUILD SUCCESSFUL (up-to-date). Cached SDK 2026.1.5 path override plus --no-configuration-cache avoids initial Gradle stall. Local SDK mode skips searchable-options generation by existing build policy.
- L13: Package build/distributions/tasklane-2.32.0.zip exists (version unchanged from pre-existing edits). New runtime libraries dbus core/native-unixsocket 5.2.0 and slf4j-api2.0.17; JNA not packaged, provided by IDE. Native installed-IDE validation remains pending on macOS/Windows/X11/Wayland; don't claim end-to-end proof.
- L14: Independent verifier still required for Risk 4/5/6. gpt-6.1-sol quota reached in build worker, so request user authorization for gpt-6-astra verifier rather than skip it. Native assess returned high/unassessable because untracked inventory must be declared; no review START or approval. Need isolate our candidate from pre-existing dirty changes and choose chain strategy before commits. No commits/push/PR. Native/Linux standalone scratch directories cleaned; logs /tmp/tasklane-global-final-check.log and /tmp/tasklane-global-baseline.log retained.

- L15: "papa, sube version y haz todo para poder subir a marketplace". Found clean worktree at externally created commit 7bdf516 (message feat: version 2.33.0, actual pluginVersion still2.32.0). Preserve that commit; prepare metadata2.33.0 on top. All earlier dirty work is now part of HEAD. No history rewriting.
- L16: Independent verification found two release blockers: controller generation check/CAS race dropping the first new activation (JDI reproduced), and X11 active-grab diversion of unrelated keys while trigger held (source/protocol). One correction batch added synchronized claimDelivery and XCB synchronous keyboard grab with immediate checked active ungrab and configured-key repeat sampling. Linux fake regression observed RED→GREEN,15 tests pass. Independent targeted recheck cleared both at their original evidence levels; native desktop proof remains pending. Release2.33.0 full build/Verifier running; no publication.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ internal class GlobalQuickAddController(
if (shortcut == null || disposed) return@execute
shortcut.validate()
val handle = backend().register(shortcut) { token ->
if (!disposed && version == generation.get() && pendingDelivery.compareAndSet(0, version)) {
if (claimDelivery(version)) {
delivery.execute {
try {
if (!disposed && version == generation.get()) activated(token)
Expand All @@ -53,6 +53,11 @@ internal class GlobalQuickAddController(
}
}

// Configuration and acquisition share the same monitor. A stale callback must not
// claim the newly reset pending slot between its generation check and its CAS.
@Synchronized private fun claimDelivery(version: Long): Boolean =
!disposed && version == generation.get() && pendingDelivery.compareAndSet(0, version)

@Synchronized override fun close() {
if (disposed) return
disposed = true
Expand Down
Loading
Loading