Recognize both <tab> and <c-i> as forward jump

Now that Kakoune opts into extended key reporting, <c-i> is correctly
reported and hence needs to be mapped to forward jump.

We still need to keep <tab> mapped to it for legacy terminals.

Should fix #4333
This commit is contained in:
Maxime Coste 2021-11-11 13:29:42 +11:00
parent 1b8574449f
commit e7100dc874

View File

@ -2355,7 +2355,8 @@ static constexpr HashMap<Key, NormalCmd, MemoryDomain::Undefined, KeymapBackend>
{ {alt('>')}, {"indent, including empty lines", indent<true>} },
{ {alt('<')}, {"deindent, not including incomplete indent", deindent<false>} },
{ {/*ctrl('i')*/Key::Tab}, {"jump forward in jump list",jump<Forward>} }, // until we can distinguish tab a ctrl('i')
{ {ctrl('i')}, {"jump forward in jump list",jump<Forward>} },
{ {Key::Tab}, {"jump forward in jump list",jump<Forward>} }, // legacy terminals encode <tab> / <c-i> the same way
{ {ctrl('o')}, {"jump backward in jump list", jump<Backward>} },
{ {ctrl('s')}, {"push current selections in jump list", push_selections} },