Skip to content

Instantly share code, notes, and snippets.

@phakeandy
Created April 20, 2025 05:43
Show Gist options
  • Save phakeandy/10406db997d8c7c6ead32e58d649e778 to your computer and use it in GitHub Desktop.
Save phakeandy/10406db997d8c7c6ead32e58d649e778 to your computer and use it in GitHub Desktop.
alacritty 在 windows 下粘贴会出现换行 bug,维护者不打算修复
; https://github.com/alacritty/alacritty/issues/2324
#Requires AutoHotkey v2
#HotIf WinActive("ahk_exe alacritty.exe")
; Ctrl+Shift+V -- change line endings
^+v::
{
A_Clipboard := StrReplace(A_Clipboard, "`r`n", "`n")
Send("^+v")
}
return
#HotIf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment