feat(clipboard): show the paste target and navigate the history picker

The clipboard history picker listed the entries without saying when they
were copied or which window would receive the paste, and the only way to
pick an entry was to read its hint label and type the letters, which the
picker never showed.

Each entry now carries the time it was copied and the window that will be
pasted into is named above the list, with a footer documenting the keys.
Pressing Up/Down moves the highlighted entry and Enter pastes it, through a
new --pick-from-list mode of the hints kitten that keeps the hint letters
working as before.

Fixes #49
This commit is contained in:
BlackAngelTV committed 2026-12-03 11:01:11 +01:00
1 parent 1b9e076139
commit 42c097c69a
8 files changed
+238 -44

No files matched your search

+4 -2
View File
@@ -276,8 +276,10 @@ instance, newest first, and lets you paste one of them back with
:ac:`paste_from_clipboard_history`. :ac:`search_clipboard_history` filters the
history with a fuzzy query before showing the list.
The picker numbers the entries: type the number next to the entry you want to
paste, or press :kbd:`Escape` to cancel.
The picker lists the entries with the time each one was copied and names the
window that will receive the paste. Move the highlighted entry with :kbd:`↑` and
:kbd:`↓` and press :kbd:`Enter` to paste it, or type the letters of the hint
shown next to it. Press :kbd:`Escape` to cancel.
The history lives in memory only: it is never written to disk, so it disappears
when kitty exits and secrets copied during a session do not outlive it. Text