Decide on a paste action for --upper-action #7
Labels
No labels
bug
design
docs
enhancement
good-first-issue
packaging
rendering
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
natsukium/spoor#7
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add
pasteas an--action/--upper-actionvalue: put the picked value into the terminal'sinput rather than the clipboard.
Why
ActionisPrint | Copy | Open | Command.docs/research.md"Edge-case handling" records thatboth wezterm and foot bind uppercase = paste — it is the standard second action, and
--upper-actionwas built precisely to offer a second action from one binding.Today the closest thing is
--action 'tmux send-keys {}'-style command, which only works underone specific producer and is not injection-symmetric with the built-ins.
Open question
There is no portable way to push text into the foreground program's input from outside it. The
options:
keystroke.
/dev/ttywithTIOCSTIis the classic trick and is disabled on modern kernels(
dev.tty.legacy_tiocsti), so it is not a foundation.spoorprints the value (already the defaultPrint) andthe key binding does the pasting —
tmux send-keys, felis' own paste action, kitty remotecontrol.
If that is the answer, then
pasteis documentation, not code: a README recipe per producershowing the binding that pastes what
spoorprinted. Worth deciding explicitly and recording itin
docs/design.md"Rejected alternatives" if we decline the flag, since the competitors have thefeature and its absence will otherwise look like an oversight.