Open Parasrah opened 4 years ago
Did you try escaping the semicolon? <a-semicolon>
.
Do you mean updating to the following?
define-command enter-test-mode %{
hook -group kak-test global InsertChar .* %{
execute-keys -draft %sh{
key=$kak_hook_param
printf %s "<a-semicolon>\i${key}"
}
}
}
It still seems to act the same way. I think the issue lies in \i${key}
is still triggering the current hook despite the \
. I've also tried with <esc>\i${key}
and it acts the same way
Steps
Outcome
enter-test-mode
:recursive call of hook InsertChar/<key>, not executing
in debug bufferExpected
enter-test-mode
: