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

+8
View File
@@ -271,6 +271,14 @@ elsewhere. See {hints_url} for details.
--window-title
The title for the hints window, default title is based on the type of text being
hinted.
--pick-from-list
type=bool-set
The input is an ordered list of choices rather than text to search, as used by the
clipboard history picker. The first choice is selected and the arrow keys move the
selection, so a choice can be picked with :kbd:`Enter` instead of typing the
letters of its hint.
""".format(
default_regex=DEFAULT_REGEX,
line='{{line}}',