You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
capslock-check checks the capslock status and sets the colorscheme to the capslock scheme if on (and reverts back to the correct modal theme if off).
### Outcome
The appropriate theme is toggled on enabling the capslock. The capslock state (configured) is shown immediately on the statusline BUT the appropriate colorscheme does not show until the first keypress subsequent to togging the capslock key.
### Expectations
Expecting the hook to immediately effect the colorscheme change of capslock state.
### Additional information
I inserted a %sh{echo "capslocks on" >>/tmp/kak:trace} statement into the capslock-check command hook and, indeed, togging the capslock does not issue the trace message until the first keypress after toggling the capslock. It's as if the hook action is queued and doesn't trigger until the keypress.
This happens with no plugins loaded as well. Running on Alpine Linux 3.19 (latest stable).
The text was updated successfully, but these errors were encountered:
Version of Kakoune
v2023.08.05
Reproducer
Nothing complicated..
hook global WinCreate .* %{
normal-mode-colorscheme
hook window ModeChange (push|pop):.:insert insert-mode-colorscheme
hook window ModeChange (push|pop):insert:. normal-mode-colorscheme
hook window InsertIdle .* capslock-check
hook window NormalIdle .* capslock-check
}
The text was updated successfully, but these errors were encountered: