ConEmu icon indicating copy to clipboard operation
ConEmu copied to clipboard

NeoVim doesn't seem to receive focus event

Open belotn opened this issue 3 years ago • 2 comments

Hello,

Versions

ConEmu build: 210822 x64 OS version: Windows 10 x64 Used shell version : powershell

Problem description

When using plugins https://github.com/jeffkreeftmeijer/vim-numbertoggle which change numbering format when vim gain or lost focus, neovim doesn't seem to receive focus event and numbering format do not change.

image

belotn avatar Sep 03 '21 12:09 belotn

  1. How to reproduce
  2. What is the expected behavior.

For now, the issue looks incomplete.

Maximus5 avatar Sep 11 '21 21:09 Maximus5

I have raised this issue thinking its a problem with neovim: https://github.com/neovim/neovim/issues/18901, but apparently its a problem with terminal apps that are not handling required events, according to: https://github.com/neovim/neovim/issues/18901#issuecomment-1152837532

@Maximus5

  1. How to reproduce

Copied from issue mentioned above:

  1. Start with no config: nvim --clean
  2. Register autocommands for Focus* events:
autocmd FocusLost * echo 'FocusLost'
autocmd FocusGained * echo 'FocusGained'
  1. Change focus to another window
  2. Notice no message will appear
  3. Change focus back to terminal
  4. Notice there is still no message displayed

Expected behavior

  1. What is the expected behavior.

Events should fire displaying FocusLost and FocusGained as terminal window gains and loses focus.

EtiamNullam avatar Jun 11 '22 18:06 EtiamNullam