Skip to content

Fix/colorscheme picker wsl#44

Merged
alexesba merged 3 commits into
masterfrom
fix/colorscheme-picker-wsl
Jun 19, 2026
Merged

Fix/colorscheme picker wsl#44
alexesba merged 3 commits into
masterfrom
fix/colorscheme-picker-wsl

Conversation

@alexesba

Copy link
Copy Markdown
Owner

Summary

  • Disable the Kitty keyboard protocol on Kitty/Alacritty so Backspace, Tab, and Enter no longer fire twice (Neovim 0.11+ on WSL GUI terminals)
  • Defer :ColorScheme / :PickColorscheme picker open until after cmdline teardown, and set auto_close = false for the colorschemes source
  • Skip CursorHold diagnostic floats during cmdline/wildmenu and while Snacks pickers are open, fixing wildmenu jumping to the second match

Test plan

  • WSL + Kitty/Alacritty: Backspace deletes one character, not two
  • WSL + Kitty/Alacritty: :colorscheme Tab completion stays on the intended match
  • WSL + Kitty/Alacritty: :ColorScheme opens the picker and keeps it open
  • <leader>uC still works as before

alexesbafh and others added 3 commits June 19, 2026 12:54
Disable Snacks picker auto_close for colorschemes and skip CursorHold
diagnostic floats while picker windows are focused.

Co-authored-by: Cursor <cursoragent@cursor.com>
Opening the picker from :commands must wait for cmdline teardown; keymaps
do not. Also skip CursorHold floats during cmdline/wildmenu to stop WSL
completion from jumping to the second match.

Co-authored-by: Cursor <cursoragent@cursor.com>
Neovim 0.11+ can receive duplicate Enter/Tab/Backspace events when the
Kitty keyboard protocol is active in GUI terminals on WSL.

Co-authored-by: Cursor <cursoragent@cursor.com>
@alexesba
alexesba merged commit 2606413 into master Jun 19, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants