tmux-plugins / vim-tmux-focus-events

Make terminal vim and tmux work better together.
MIT License
348 stars 23 forks source link

Prevent insertion of the command while popup window is open #12

Closed wookayin closed 7 years ago

wookayin commented 7 years ago

This is a patch for the issue #10.

If focus is lost in insert mode while popup (autocomplete) menu is open, the :silent doautocmd ... command was unwantedly inserted into the text. To avoid this issue, we use the <C-\> directive.

achilleas-k commented 7 years ago

Oh, this is much better than my solution. Well mine was more of a workaround. I've been using my own fork where I just have vim drop to normal mode from insert when focus is lost https://github.com/achilleas-k/vim-tmux-focus-events/commit/1db1b274ff0e3b52bb34f6c096d814b102f6fa02 and I got used to it.

There's 5 open PRs in this repo now, the earliest from Jan 2016, and the latest commit was Oct 2015. Maybe it's time we merge people's patches into another fork and just use that one instead.

wookayin commented 7 years ago

@achilleas-k Thanks for your feedback! @bruno- Are you still maintaining this project?

wookayin commented 7 years ago

Any updates?

bruno- commented 7 years ago

Hey guys, sorry I've been neglecting this repo. @wookayin would you be willing to help with the maintenance?

wookayin commented 7 years ago

Thank you very much! @bruno- Sure, it's my pleasure 👍