master-key.updateCount
Updates the count. If already set, adds a new digit to the count. This shows up in the status bar in front of any keybinding It can be accessed in when clauses using master-key.count
and in expressions using count
. Typically one should set finalKey
to false when using updateCount
, as the count is only set transiently; see master-key.prefix
for details.
Arguments
value
: The numeric value to set thecount
variable to
Example:
toml
[[bind]]
foreach.num = ['{{key: [0-9]}}']
name = "count {{num}}"
key = "{{num}}"
command = "master-key.updateCount"
args.value = "{{num}}"
finalKey = false
mode = "normal"
[[bind]]
key = "j"
name = "↓"
mode = "normal"
command = "cursorMove"
computedArgs.value = "count"
args.to = "down"
args.by = "wrappedLine"
Typing 5j with the above bindings defined would move the cursor to the fifth line down.