Open jam1015 opened 1 year ago
as a workaround I use these mappings
map global insert <c-[> <esc>
map global prompt <c-[> <esc>
whether we should make this the default behavior I'm not sure. See also https://github.com/mawww/kakoune/pull/4575#discussion_r836788885
on current master this prompt mode mapping unfortunately won't add to history like Escape does; https://github.com/mawww/kakoune/pull/4695fixes that
good to know! Does this lack of adding to history have any practical implications for editing?
only for prompt history; when you cancel a prompt with Escape, then you can still recover the typed command by going back to the prompt and pressing the up arrow. It's big deal but it's a good feature to have sometimes
Version of Kakoune
Kakoune v2022.10.31
Reproducer
Describe the bug
In vim and neovim I use
CTRL-[
to escape insert mode. That works in Kitty and all other terminals.I'm fooling around with Kakoune, In other terminals (the base tty before launching the x gui session, alacritty, xterm)
CTRL-[
successfully gets out of insert mode in Kakoune. This does not work in Kitty. I pressCTRL-[
and nothing happens.Verified that the problem ixists in MacOS and Arch Linux.
Problem persists with
kitty --config NONE
.I will post this bug report here and in the Kakoune repo.
To Reproduce
Launch Kakoune in Kitty, press
i
to enter insert mode, and then pressCTRL-[
to try to get back to normal mode. Nothing happens. Try the same in a different terminal and you do get back to normal mode.Try with vim/neovim in any terminal including Kitty and you successfully leave insert mode.
Outcome
Insert mode is not left
Expectations
CTRL-[
should leave insert mode.Additional information
No response