langmap.kak icon indicating copy to clipboard operation
langmap.kak copied to clipboard

Support replace mode

Open maximbaz opened this issue 2 years ago • 2 comments

Currently only insert mode is supported, and judging by the comments in code you have at least considered supporting other modes. Do you have some insights, how difficult would it be to support replace mode?

To clarify with йцукен, pressing кы in normal mode to replace the character under cursor with ы instead of s.

maximbaz avatar Apr 04 '22 15:04 maximbaz

I don't think it's possible. AFAIK replace mode isn't actually a mode? Kakoune seems to read a character directly from terminal, so no remapping is possible here, again, AFAIK, but I may be wrong. IIRC there was a plugin by alexherbo2 which implemented Vim-like replace mode, where you could have typed text, to overwrite existing one continuously. It should be possible to remap this, as it was a user mode, but it's not a part of Kakoune, so remapping something like that needs a custom support.

andreyorst avatar Apr 04 '22 16:04 andreyorst

I see, makes sense 😞

maximbaz avatar Apr 04 '22 17:04 maximbaz