From f444b49e293bd0e3f4f7812a94752bf2cd7f8899 Mon Sep 17 00:00:00 2001 From: qwjyh Date: Fri, 14 Jul 2023 13:24:40 +0900 Subject: [PATCH] update: ahk: add mh-u, mh-d for multi-line scroll, mh-n, mh-p for pgdn/up --- bin/windows/install_key_remaps.ps1 | 2 +- dotfiles/ahk/key_remaps.ahk | 42 +++++++++++++++++++++++++++--- 2 files changed, 39 insertions(+), 5 deletions(-) diff --git a/bin/windows/install_key_remaps.ps1 b/bin/windows/install_key_remaps.ps1 index 1197205..bd9edd9 100644 --- a/bin/windows/install_key_remaps.ps1 +++ b/bin/windows/install_key_remaps.ps1 @@ -3,7 +3,7 @@ # change working directory to git root -Set-Location (Join-Path $PSScriptRoot "..") +Set-Location (Join-Path $PSScriptRoot "..\..") # set Ahk2Exe.exe path # example "C:\Program Files\AutoHotKey\Compiler\Ahk2Exe.exe" diff --git a/dotfiles/ahk/key_remaps.ahk b/dotfiles/ahk/key_remaps.ahk index 70722db..5cf690b 100644 --- a/dotfiles/ahk/key_remaps.ahk +++ b/dotfiles/ahk/key_remaps.ahk @@ -38,7 +38,7 @@ Send,{Blind}{Right} return ; Home,End,PgUp,PgDnの設定 -; a s d f +; a p n f ; Home PgUp PgDn End vk1D & a:: vk1C & a:: @@ -48,14 +48,48 @@ vk1D & f:: vk1C & f:: Send,{Blind}{End} return -vk1D & s:: -vk1C & s:: +vk1D & p:: +vk1C & p:: Send,{Blind}{PgUp} return +vk1D & n:: +vk1C & n:: +Send,{Blind}{PgDn} +return + +; Multi-Line Up/Down +; (experimental) +vk1D & u:: +vk1C & u:: +Send,{Blind}{Up 5} +return vk1D & d:: vk1C & d:: -Send,{Blind}{PgDn} +Send,{Blind}{Down 5} return +; vk1D & v:: +; vk1C & v:: +; Send,{Blind}{Down} +; Sleep, 1 +; Send,{Blind}{Down} +; Sleep, 1 +; Send,{Blind}{Down} +; Sleep, 1 +; Send,{Blind}{Down} +; Sleep, 1 +; Send,{Blind}{Down} +; Sleep, 1 +; return +; vk1D & b:: +; vk1C & b:: +; Send,{Blind}{Down down} +; Send,{Blind}{Down down} +; Send,{Blind}{Down down} +; Send,{Blind}{Down down} +; Send,{Blind}{Down down} +; Send,{Blind}{Down up} +; return + ; ========================================== ; include extra key remaps