Files
tinycast/Scripts
Abue Ammar e14a3ba36e Paste history one entry at a time with Paste Sequentially (#1221)
* Paste text history one entry at a time with Paste Sequentially

Paste Sequentially is a new clipboard command. Bound to a shortcut, each
press pastes the next older text entry into the app in front, without
the palette. Copy A, B and C, and three presses paste C, B and A.

The walk takes its entries' ids at the first press and never promotes,
so it cannot repeat or skip an entry, and an entry deleted mid-walk is
skipped rather than pasted. A copy made since the last press, or a
minute without one, starts it over from the newest entry. Past the
oldest entry it says so instead of wrapping.

Each press drains the poller before it writes, so a copy made inside
the 0.5s poll interval reaches history instead of being overwritten.

* Hold back a Paste Sequentially press that comes before the last paste lands

A press writes the next entry to the pasteboard at once and posts ⌘V
50ms later, and the target reads the pasteboard only when it handles
that ⌘V. A second press inside that gap swapped the pasteboard first,
so one entry was pasted twice and another skipped.

A press within 0.25s of the last paste is now dropped. It is not
queued, since a queue would replay a held shortcut as a burst of
pastes. A dropped press does not move the walk, so nothing is skipped.

* Paste images and files with Paste Sequentially, not only text

The walk now takes every entry in history, newest first, so a run of
copies that mixes text and images pastes all of them in order. Paster
already writes each kind, so the filter was the only thing in the way.

An image or file gone from disk writes nothing. The same press now
moves on to the next entry, where before it did nothing at all.
2026-09-30 02:35:02 +06:00
..
…
…