<commit_before>; emulate term
^[::Send {Esc}

; below is adapted from https://autohotkey.com/board/topic/51959-using-capslock-as-another-modifier-key/

$*Capslock::
Gui, 99:+ToolWindow
Gui, 99:Show, NoActivate, Capslock Is Down
keywait, Capslock
Gui, 99:Destroy
return

#IfWinExist, Capslock Is Down
; vimish
h::Left
j::Down
k::Up
l::Right
; could try to be vimish on these, but can't really do $ with left pinky already on capslock
u::Home
m::End
i::PgUp
,::PgDn
BackSpace::Del
#IfWinExist

; work around accidental ctrl-shift-q in firefox
$^+q::
IfWinNotActive, ahk_exe firefox.exe
{
    Send ^+q ; this is not Firefox, so send the key again.
}<commit_msg>MM hotkeys<commit_after>; emulate term
^[::Send {Esc}

; below is adapted from https://autohotkey.com/board/topic/51959-using-capslock-as-another-modifier-key/

$*Capslock::
Gui, 99:+ToolWindow
Gui, 99:Show, NoActivate, Capslock Is Down
keywait, Capslock
Gui, 99:Destroy
return

#IfWinExist, Capslock Is Down

; vimish
h::Left
j::Down
k::Up
l::Right
; could try to be vimish on these, but can't really do $ ctrl-b etc. with left pinky already on capslock
u::Home
m::End
i::PgUp
,::PgDn
BackSpace::Del

; multimedia
q::Media_Prev
w::Media_Play_Pause
e::Media_Next
1::Volume_Down
2::Volume_Mute
3::Volume_Up

#IfWinExist

; work around accidental ctrl-shift-q in firefox
$^+q::
IfWinNotActive, ahk_exe firefox.exe
{
    Send ^+q ; this is not Firefox, so send the key again.
}
{'fraction_non_alphanumeric': 0.12639664804469275, 'fraction_numerical': 0.017458100558659217, 'mean_word_length': 5.097872340425532, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '903642', 'n_tokens_mistral': 587, 'n_tokens_neox': 548, 'n_words': 164}