keaising / im-select.nvim

Switch Input Method automatically depends on Neovim's edit mode
MIT License
170 stars 25 forks source link

New option: Set input method to default on FocusGained #9

Closed todesking closed 1 year ago

todesking commented 1 year ago

In macOS, when switching applications, the state of IM will be carried over from the previous application. In such a situation, resetting the state of IM to default on FocusGained can be helpful.

keaising commented 1 year ago

Thanks for your contribution!

It looks good, and I want to know that have you ever test this feature on any OS/environment?

todesking commented 1 year ago

Thanks!

I tested the plugin on VimR 0.44.0(NVIM 0.8.2) with macOS 13.3.1.

keaising commented 1 year ago

I changed value of set_default_im_on_focus_gained from 1 to true, I think it's more clear for user.

Merged, thank you!

keaising commented 1 year ago

I'm so sorry that I removed set_default_im_on_focus_gained option.

As compensation I have added FocusGained into new option set_default_events as the default.

The main purpose of this break change is that users can adjust the trigger enevts they need at will.

Hope to get your understanding ^_^