I'm trying to set up 2-char jump, following the HopWord example in README.md, by replace patter = [[\<]] with pattern = State.get_char(State) where State is defined as local State = require("flash.state"), and I bind the function to key t. It somehow works, but when I press t, the texts are not gray out until I press the first char, and the 2-char label moves forward as I type in the label characters. Please check the attached GIF for a demonstration.
On the first search, I type t to start a forward-only search and type in I and N, and then type in a and s to jump to the target on line 920.
On the second search, I type T to start a backward-only search and type in d and e, and then type in a and `` to jump to the target on line 916.
I'm trying to set up 2-char jump, following the HopWord example in README.md, by replace
patter = [[\<]]
withpattern = State.get_char(State)
whereState
is defined aslocal State = require("flash.state")
, and I bind the function to keyt
. It somehow works, but when I presst
, the texts are not gray out until I press the first char, and the 2-char label moves forward as I type in the label characters. Please check the attached GIF for a demonstration.t
to start a forward-only search and type inI
andN
, and then type ina
ands
to jump to the target on line 920.T
to start a backward-only search and type ind
ande
, and then type ina
and `` to jump to the target on line 916.