Maximus5 / ConEmu

Customizable Windows terminal with tabs, splits, quake-style, hotkeys and more
https://conemu.github.io/
BSD 3-Clause "New" or "Revised" License
8.55k stars 571 forks source link

NeoVim doesn't seem to receive focus event #2361

Open belotn opened 3 years ago

belotn commented 3 years ago

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

Maximus5 commented 3 years ago
  1. How to reproduce
  2. What is the expected behavior.

For now, the issue looks incomplete.

EtiamNullam commented 2 years ago

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'
  3. Change focus to another window
  4. Notice no message will appear
  5. Change focus back to terminal
  6. 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.