Skip to content
This repository was archived by the owner on Mar 15, 2026. It is now read-only.
This repository was archived by the owner on Mar 15, 2026. It is now read-only.

[Bug] Windows Terminal fires its autocmd event in explorer.exe. #280

@poponta1218

Description

@poponta1218

About Bug

When Windows Terminal is running with its autocmd configured to switch to Resident mode, selecting explorer.exe (or clicking on the Desktop) inadvertently triggers the Windows Terminal autocmd.
As a result, explorer.exe enters Resident mode instead of the expected GUI normal mode.

Steps to reproduce

  1. Add the following lines to your .vindrc:
    • autocmd AppEnter explorer.exe <to_gui_normal>
    • autocmd AppEnter WindowsTerminal.exe,wt.exe <to_resident>
  2. Reload your .vindrc configuration.
  3. Launch WindowsTerminal.exe.
  4. Select explorer.exe (or click on the Desktop).
  5. explorer.exe unexpectedly enters Resident mode.

Here is my .vindrc file:

version big

noremap : ;
noremap ; :

set cmd = cmd
set cmd_fontsize = 24
set cmd_fontname = "Cascadia Code"
set cmd_roughpos = LowerLeft
set cmd_xmargin = 96
set cmd_ymargin = 96

set easyclick_fontsize = 16

autocmd AppLeave * <to_insert>
autocmd AppEnter *notepad* <to_edi_normal>
autocmd AppEnter,EdiNorMalEnter nvim-qt.exe <to_resident>
autocmd AppEnter cmd.exe <to_resident>
autocmd AppEnter WindowsTerminal.exe,wt.exe <to_resident>
autocmd AppEnter wt.exe <to_resident>
autocmd AppEnter explorer.exe <to_gui_normal>

Even though only autocmd AppEnter WindowsTerminal.exe <to_resident> is set, the same bug occurs.

Environments

Environments Delete the example and fill in your information.
Windows Edition 11 Pro
Windows Version 23H2
Windows Build 10.0.22631
Architecture 64bit
win-vind Version 5.13.2.0
win-vind Install Type winget

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions