Files
patterm/internal/app
Harry Bayliss 05f92a3ed0 Add context-aware items to the command palette
When opened with Ctrl-K, the palette now prepends entries for whatever
is currently focused:

- Focused scratchpad: Delete / Rename (inline form) / Edit (fire-and-
  forget zed launch with stdio detached so the TUI is not suspended).
- Focused agent: Rename (inline form) / Close.
- Focused process: Rename / Delete (drops the entry; SIGKILL if alive)
  / Stop (SIGTERM, keep entry) / Restart (same argv).

The rename UX is a single-field inline form that mirrors the existing
spawn-process form, so the modal-input contract is unchanged.
scratchpad.Store grows Delete / Rename / Path so the palette can act
on a pad file by name. focusedPad is plumbed onto uiState ahead of the
scratchpad-focus UI work; until that lands it stays empty and the
scratchpad-context entries simply never surface.

Tested with palette_context_test.go and a new rename_process_via_palette
harness scenario.
2026-05-15 00:51:07 +01:00
..
wip
2026-05-15 00:28:06 +01:00
wip
2026-05-15 00:28:06 +01:00
wip
2026-05-15 00:28:06 +01:00
wip
2026-05-15 00:28:06 +01:00
wip
2026-05-15 00:28:06 +01:00
wip
2026-05-15 00:28:06 +01:00
wip
2026-05-15 00:28:06 +01:00
wip
2026-05-15 00:28:06 +01:00
wip
2026-05-15 00:28:06 +01:00
wip
2026-05-15 00:28:06 +01:00
fix
2026-05-14 20:08:09 +01:00
wip
2026-05-15 00:28:06 +01:00
wip
2026-05-15 00:28:06 +01:00
2026-05-14 22:04:32 +01:00
wip
2026-05-15 00:28:06 +01:00
wip
2026-05-15 00:28:06 +01:00
wip
2026-05-15 00:28:06 +01:00