Skip to content

master-key.captureKeys

Awaits user input for a fixed number of key presses, and then stores the resulting characters as a string in the variable captured, accessible in any subsequent expression.

Arguments

  • acceptAfter: The number of keys to capture

The command also accepts a second, optional argument called `text`, which can

directly express what keys to store in captured instead of requesting input from the user. This is not really useful when writing a [[bind]] entry, but is defined to make it easy to replay previously executed versions of this command (e.g. in a keyboard macro).