From 85e4e4d784dc11f6d5837484b69ea6c6c2ebf616 Mon Sep 17 00:00:00 2001 From: kkard2 Date: Wed, 5 Jul 2023 23:56:12 +0200 Subject: i forgor about stoppage --- idea/.ideavimrc | 1 + 1 file changed, 1 insertion(+) diff --git a/idea/.ideavimrc b/idea/.ideavimrc index 0b0be1c..ac1346e 100644 --- a/idea/.ideavimrc +++ b/idea/.ideavimrc @@ -66,6 +66,7 @@ nmap ,r (Run) nmap ,d (Debug) nmap ,cr (ContextRun) nmap ,cd (ContextDebug) +nmap ,s (Stop) nmap ,t (RiderUnitTestRunSolutionAction) nmap ,f (RiderUnitTestRerunBrokenSplitAction) -- cgit v1.3.1 From c801ae5d7cb999b12b28a6e0016f1bf742be520a Mon Sep 17 00:00:00 2001 From: kkard2 Date: Thu, 6 Jul 2023 14:59:24 +0200 Subject: more things i forgor --- idea/.ideavimrc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/idea/.ideavimrc b/idea/.ideavimrc index ac1346e..9a35082 100644 --- a/idea/.ideavimrc +++ b/idea/.ideavimrc @@ -21,6 +21,12 @@ set incsearch set ideajoin +" i want to try this +nnoremap ; : +nnoremap : ; +vnoremap ; : +vnoremap : ; + " Focus sth (e.g. Focus Search) nmap f; (ActivateTerminalToolWindow) nmap f: (Terminal.OpenInTerminal) @@ -79,8 +85,9 @@ nmap a (GotoAction) nmap gd (GotoDeclaration) nmap gi (GotoImplementation) nmap gh (QuickJavaDoc) -nmap gj (Forward) -nmap gk (Back) +nmap ge (GotoNextError) +nmap gE (GotoPreviousError) +nmap gj (ShowErrorDescription) " debugging nmap \b (ToggleLineBreakpoint) -- cgit v1.3.1 From ea43499e7927f82cc03f9abad78e9e2f3d71270d Mon Sep 17 00:00:00 2001 From: kkard2 Date: Sun, 9 Jul 2023 11:45:23 +0200 Subject: move elevator configuration to this repo (this joke is very unfunny) --- README.md | 3 ++ _windows/ahk/capslock.ahk | 113 ++++++++++++++++++++++++++++++++++++++++++++++ _windows/ahk/media.ahk | 8 ++++ _windows/ahk/run.ps1 | 4 ++ _windows/startup.ps1 | 3 ++ 5 files changed, 131 insertions(+) create mode 100644 _windows/ahk/capslock.ahk create mode 100644 _windows/ahk/media.ahk create mode 100644 _windows/ahk/run.ps1 create mode 100644 _windows/startup.ps1 diff --git a/README.md b/README.md index 77db994..ddc5497 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,6 @@ config stuff (i need to move everything into one place) # links for this to work * `~/.ideavimrc` -> `./idea/.ideavimrc` + +# windows +* run `./_windows/startup.ps1` on startup (`PowerShell.exe -WindowStyle Hidden -ExecutionPolicy Bypass -File `) diff --git a/_windows/ahk/capslock.ahk b/_windows/ahk/capslock.ahk new file mode 100644 index 0000000..0fb67bb --- /dev/null +++ b/_windows/ahk/capslock.ahk @@ -0,0 +1,113 @@ +#Requires AutoHotkey v2 +#SingleInstance Force + +CapsLockState := false +HarpoonLastWindowIndex := 0 + +HarpoonRun(winTitle) { + SetTitleMatchMode 2 + DetectHiddenWindows false + + windows := WinGetList(winTitle) + + if windows.Length = 0 { + return + } + + if WinActive(winTitle) { + global HarpoonLastWindowIndex := Mod((HarpoonLastWindowIndex + 1), windows.Length) + } else { + global HarpoonLastWindowIndex := 0 + } + + WinActivate windows[HarpoonLastWindowIndex + 1] +} + +#HotIf GetKeyState("CapsLock", "P") +\::{ + global CapsLockState := not CapsLockState + SetCapsLockState CapsLockState +} + +; vim motion +h::Left +j::Down +k::Up +l::Right + +y::^Left +u::^Down +i::^Up +o::^Right + +n::Home +m::PgDn +,::PgUp +.::End + +; vim motion w select ++h::+Left ++j::+Down ++k::+Up ++l::+Right + ++y::^+Left ++u::^+Down ++i::^+Up ++o::^+Right + ++n::+Home ++m::+PgDn ++,::+PgUp ++.::+End + +; harpoon +`::HarpoonRun("ahk_exe WindowsTerminal.exe") +1::HarpoonRun("ahk_exe Discord.exe") +2::HarpoonRun("ahk_exe rider64.exe") +3::HarpoonRun("ahk_exe msedge.exe") +4::HarpoonRun("ahk_exe Element.exe") +5::HarpoonRun("ahk_exe code.exe") +e::HarpoonRun("ahk_class CabinetWClass") + +Esc::Run "taskmgr" + +; window manipulation +!h::#Left +!j::#Down +!k::#Up +!l::#Right + +!y::#+Left +!u::#+Down +!i::#+Up +!o::#+Right + +; desktop switching +!,::^#Left +!m::^#Right + +q::Esc +#HotIf + +CapsLock::{ + KeyWait "CapsLock" + if A_ThisHotkey = "CapsLock" { + Send "{Escape}" + } +} + +!CapsLock::{ + return +} +^CapsLock::{ + return +} +^!CapsLock::{ + return +} ++CapsLock::{ + return +} + +Esc::F13 diff --git a/_windows/ahk/media.ahk b/_windows/ahk/media.ahk new file mode 100644 index 0000000..6e4495d --- /dev/null +++ b/_windows/ahk/media.ahk @@ -0,0 +1,8 @@ +#Requires AutoHotkey v2 +#SingleInstance Force + +^#Space::Send "{Media_Play_Pause}" +^#x::Send "{Media_Next}" +^#z::Send "{Media_Prev}" +^#Up::Send "{Volume_Up}" +^#Down::Send "{Volume_Down}" diff --git a/_windows/ahk/run.ps1 b/_windows/ahk/run.ps1 new file mode 100644 index 0000000..c802d23 --- /dev/null +++ b/_windows/ahk/run.ps1 @@ -0,0 +1,4 @@ +Push-Location $PSScriptRoot +.\capslock.ahk +.\media.ahk +Pop-Location diff --git a/_windows/startup.ps1 b/_windows/startup.ps1 new file mode 100644 index 0000000..7c8d4f4 --- /dev/null +++ b/_windows/startup.ps1 @@ -0,0 +1,3 @@ +Push-Location $PSScriptRoot +.\ahk\run.ps1 +Pop-Location -- cgit v1.3.1 From e77947d39d5085d2dbe8a27bd7f6a005653d2a8f Mon Sep 17 00:00:00 2001 From: kkard2 Date: Fri, 7 Jul 2023 13:55:33 +0200 Subject: lsp rename --- idea/.ideavimrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/idea/.ideavimrc b/idea/.ideavimrc index 9a35082..7d12d69 100644 --- a/idea/.ideavimrc +++ b/idea/.ideavimrc @@ -37,6 +37,9 @@ nmap fp (ActivateProblemsViewToolWindow) nmap ft (ActivateUnitTestsToolWindow) nmap fx (HideAllWindows) +" lsp ig? +nmap lr (RenameElement) + " tabs nmap j (NextTab) nmap k (PreviousTab) -- cgit v1.3.1 From 7e6842601240dc3291866f44a7f684b2d9525f45 Mon Sep 17 00:00:00 2001 From: kkard2 Date: Fri, 7 Jul 2023 15:13:59 +0200 Subject: idea format code --- idea/.ideavimrc | 1 + 1 file changed, 1 insertion(+) diff --git a/idea/.ideavimrc b/idea/.ideavimrc index 7d12d69..d5dbe25 100644 --- a/idea/.ideavimrc +++ b/idea/.ideavimrc @@ -78,6 +78,7 @@ nmap ,cd (ContextDebug) nmap ,s (Stop) nmap ,t (RiderUnitTestRunSolutionAction) nmap ,f (RiderUnitTestRerunBrokenSplitAction) +nmap ,o (ReformatCode) " ide stuff nmap (ShowIntentionActions) -- cgit v1.3.1 From 3bae70f7ab8a430923259245844862224a49982d Mon Sep 17 00:00:00 2001 From: kkard2 Date: Sun, 9 Jul 2023 12:09:58 +0200 Subject: arrowless discord --- _windows/ahk/discord.ahk | 11 +++++++++++ _windows/ahk/run.ps1 | 1 + 2 files changed, 12 insertions(+) create mode 100644 _windows/ahk/discord.ahk diff --git a/_windows/ahk/discord.ahk b/_windows/ahk/discord.ahk new file mode 100644 index 0000000..9417348 --- /dev/null +++ b/_windows/ahk/discord.ahk @@ -0,0 +1,11 @@ +#Requires AutoHotkey v2 +#SingleInstance Force + +#HotIf GetKeyState("CapsLock", "P") +^j::!Down +^k::!Up +^u::^!Down +^i::^!Up +^m::+!Down +^,::+!Up +#HotIf diff --git a/_windows/ahk/run.ps1 b/_windows/ahk/run.ps1 index c802d23..011d18c 100644 --- a/_windows/ahk/run.ps1 +++ b/_windows/ahk/run.ps1 @@ -1,4 +1,5 @@ Push-Location $PSScriptRoot .\capslock.ahk .\media.ahk +.\discord.ahk Pop-Location -- cgit v1.3.1