Last active
March 30, 2025 14:11
-
-
Save eniehack/3ed3ec5e7bf5197bfc1eae454d2d71dc to your computer and use it in GitHub Desktop.
VSCodeとWindows Terminalで入力している場合にのみ、Escキーを押したときの挙動を「無変換キーを押しESCを押す」動作に書き換えるAutoHotKey script。*nixにおけるuimのvi協調モードを再現したもの
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if WinActive("ahk_exe Code.exe") or WinActive("ahk_exe WindowsTerminal.exe") { | |
$Esc::{ ; https://ahkscript.github.io/ja/docs/v2/lib/A_MaxHotkeysPerInterval.htm | |
Send "{vk1Dsc07B}" ; courvusskkオフコマンド(無変換) | |
Send "{Esc}" ; 本来のESCキー機能 | |
Return | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment