rhysd / neovim-component

<neovim-editor> WebComponent to embed Neovim to your app with great ease
https://github.com/rhysd/NyaoVim
MIT License
193 stars 18 forks source link

allow input methods to send "<" #22

Closed bfredl closed 8 years ago

bfredl commented 8 years ago

when sending text input to neovim, there is this special case to handle. Compare the ime event handler in python-client:

    def _gtk_input(self, widget, input_str, *args):
        self._bridge.input(input_str.replace('<', '<lt>'))
rhysd commented 8 years ago

I understood what had happened.

Although this fix is not enough, we can start here. Thank you!

bfredl commented 8 years ago

What is missing? I thought, to input unicode text to neovim, only < needs to be escaped (this is what the gtk client does)

rhysd commented 8 years ago

Input method. For example, When Japanese input method is enabled, '<' should be input but actually '<' is input. ('<' is different from '<') No problem, I already added fix at the latest commit.