Files
nixos-config/home/common/programs
Miguel PalhasandClaude Opus 5 4a8f8d330c fix: make clip2path safe and ssh-aware
Text paste went through `kitty @ send-text`, which has no bracketed
paste, so multi-line clipboard text ran line by line in a shell. Route
text through `kitty @ action paste_from_clipboard` instead and keep
send-text for the image path only.

Over SSH the typed path pointed at the local /tmp and the remote process
could not read it. Read the focused window's foreground processes from
`kitty @ ls`, and when one of them is an ssh client, scp the image to
that host and type the remote path. Nothing is typed into the focused
app but a path, so this still works when the target is a TUI rather than
a shell. The real ssh process is preferred over the `kitten ssh`
wrapper, whose long options the argument parser does not understand.

Also: mktemp instead of a timestamp that collides within a second,
a prune of clip files older than a day, image/png preferred over
whatever format the source advertises first, and the clipboard tools
pinned so the script does not depend on kitty's inherited PATH.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-18 08:30:20 +01:00
..
2026-08-17 08:44:33 +00:00
2026-08-17 13:39:37 +01:00
2026-07-08 10:15:41 +01:00
2025-07-01 13:34:19 +01:00
2026-06-27 14:17:02 +01:00
wip
2025-06-15 09:26:50 +01:00
2026-08-17 12:40:59 +00:00
2026-08-17 13:39:37 +01:00
2026-03-26 14:30:47 +00:00
wip
2026-04-22 15:28:04 +01:00
2026-06-27 14:17:02 +01:00
2026-02-11 14:47:58 +00:00
2024-10-04 17:52:26 +01:00
2026-07-06 08:45:22 +01:00
2026-08-17 12:44:16 +00:00
2026-08-17 13:39:37 +01:00