Expand description
omni macro runner — parse a human-writable keystroke macro file into an
ordered list of steps (semantic commands + inter-step waits) for omni run
(bd-fdb154).
A macro file is one directive per line:
# a comment line (full-line only; ignored)
text hello world # -> a .text command ("hello world")
wait 200 # -> sleep 200ms before the next step
key enter # -> a .key command
combo ctrl,a,g # -> a .combo command
scroll 3 # -> a .scroll commandCommand lines reuse crate::wire::parse_send_tokens; the macro layer adds
only the wait <ms> directive, full-line # comments, and blank-line
skipping — it introduces no new wire types and does not touch the transports.
Enums§
- Macro
Step - One step in a parsed macro: either a command to dispatch, or a delay to apply before the following step.
Functions§
- batch_
steps - Group parsed steps into
(commands, delay_after)batches so consecutive commands dispatch together and onlywaitboundaries incur a sleep. - parse_
macro - Parse a macro file body into an ordered list of
MacroSteps.