pub struct Options {
pub strategy: Strategy,
pub chord: Option<Chord>,
pub pre_paste: Duration,
pub post_paste: Duration,
pub restore_clipboard: bool,
pub require_same_target: bool,
pub delayed_render: bool,
pub read_timeout: Duration,
pub read_quiet: Duration,
}Expand description
Tunables. Defaults are deliberately conservative.
Fields§
§strategy: StrategyHow the text should be delivered.
chord: Option<Chord>Chord override. None selects per target executable.
pre_paste: DurationSettle time between writing the clipboard and sending the paste chord.
post_paste: DurationTime allowed for the target to read the clipboard before restoring it.
Only consulted when Options::delayed_render is off. With delayed rendering the restore
is triggered by the target’s actual read, so there is no delay to tune.
restore_clipboard: boolRestore the previous clipboard contents after pasting.
require_same_target: boolAbort if focus left the captured target.
delayed_render: boolPublish the text as a delayed-render promise and restore once the target actually reads it.
On by default. Turning this off falls back to the timer-based restore that every other tool
ships, which loses the transcript when the target is slower than post_paste.
read_timeout: DurationHow long to wait for the target to read the clipboard before giving up.
read_quiet: DurationAfter the first read, how long reads must stay quiet before the clipboard is restored.
Consumers may read more than once per paste. This is not a race-the-target delay – it starts from an observed read, so it does not need to be tuned per machine.