From eb125c639ab2acb7249e3c69e6170f34e3a417f2 Mon Sep 17 00:00:00 2001 From: Karol Kasperek <48450097+kkard2@users.noreply.github.com> Date: Wed, 5 Jul 2023 19:36:49 +0200 Subject: Initial commit --- LICENSE | 21 +++++++++++++++++++++ README.md | 2 ++ 2 files changed, 23 insertions(+) create mode 100644 LICENSE create mode 100644 README.md diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..7d10186 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 Karol Kasperek + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..0073dcf --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# .dotfiles +config stuff (i need to move everything into one place) -- cgit v1.3.1 From 2e25867bb4ecd28d69ccdc511bea0deeb051aed4 Mon Sep 17 00:00:00 2001 From: kkard2 Date: Wed, 5 Jul 2023 23:39:32 +0200 Subject: my honest reaction to that .ideavimrc --- README.md | 3 ++ idea/.ideavimrc | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+) create mode 100644 idea/.ideavimrc diff --git a/README.md b/README.md index 0073dcf..77db994 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # .dotfiles config stuff (i need to move everything into one place) + +# links for this to work +* `~/.ideavimrc` -> `./idea/.ideavimrc` diff --git a/idea/.ideavimrc b/idea/.ideavimrc new file mode 100644 index 0000000..0b0be1c --- /dev/null +++ b/idea/.ideavimrc @@ -0,0 +1,89 @@ +let mapleader = ' ' + +" how do you even vim without this +set number +set relativenumber + +" tbh i don't know what this does but it's some tab stuff +set tabstop = 4 +set softtabstop = 4 +set shiftwidth = 4 +set expandtab + +" this i kinda get i think +set smartindent +set wrap=false + +" highlight all search results while searching (i think) +set incsearch + +" this is cool, J actually works +set ideajoin + + +" Focus sth (e.g. Focus Search) +nmap f; (ActivateTerminalToolWindow) +nmap f: (Terminal.OpenInTerminal) +nmap ff (ActivateProjectToolWindow) +nmap fs (FindInPath) +nmap fc (ActivateCommitToolWindow) +nmap fp (ActivateProblemsViewToolWindow) +nmap ft (ActivateUnitTestsToolWindow) +nmap fx (HideAllWindows) + +" tabs +nmap j (NextTab) +nmap k (PreviousTab) + +" system clipboard +nnoremap p "+p +nnoremap y "+y +nnoremap d "+d +nnoremap P "+P +vnoremap p "+p +vnoremap y "+y +vnoremap d "+d +vnoremap P "+P + +" center stuff when navigating +nnoremap zz +nnoremap zz +nnoremap n nzz +nnoremap N Nzz + +" move selected lines up one line +xnoremap K :m-2gv=gv + +" move selected lines down one line +xnoremap J :m'>+gv=gv + +" indentation fun +vnoremap < >gv + +" running and stuff +nmap ,r (Run) +nmap ,d (Debug) +nmap ,cr (ContextRun) +nmap ,cd (ContextDebug) +nmap ,t (RiderUnitTestRunSolutionAction) +nmap ,f (RiderUnitTestRerunBrokenSplitAction) + +" ide stuff +nmap (ShowIntentionActions) +nmap (GotoClass) +nmap a (GotoAction) + +" goto is a bad language feature +nmap gd (GotoDeclaration) +nmap gi (GotoImplementation) +nmap gh (QuickJavaDoc) +nmap gj (Forward) +nmap gk (Back) + +" debugging +nmap \b (ToggleLineBreakpoint) +nmap \r (Resume) +nmap \j (StepInto) +nmap \k (StepOut) +nmap (StepOver) -- cgit v1.3.1 From 85b8d0109eb0ec188bdec5d136558e6d938bef87 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 4e077b6e22b830e303a65fa200dbd65706f2dcc9 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 08f8dfc685b5cbc0dafa1e6d95f7f19d9cbc9437 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 dfbd247f37142efd24afe8878776562f1913a142 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 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 From 0d113f5ada1508cebe1348f9ed82d7d7b604cf48 Mon Sep 17 00:00:00 2001 From: kkard2 Date: Mon, 10 Jul 2023 18:46:49 +0200 Subject: caps for jp, move espanso here --- README.md | 2 ++ _windows/ahk/capslock.ahk | 12 ++++++------ espanso/.gitignore | 1 + espanso/config/default.yml | 1 + espanso/match/base.yml | 1 + espanso/match/emoji.yml | 39 +++++++++++++++++++++++++++++++++++++++ espanso/match/img.yml | 19 +++++++++++++++++++ espanso/match/meth.yml | 13 +++++++++++++ espanso/match/spelling.yml | 5 +++++ espanso/match/sub.yml | 21 +++++++++++++++++++++ espanso/match/sup.yml | 21 +++++++++++++++++++++ espanso/match/utils.yml | 20 ++++++++++++++++++++ 12 files changed, 149 insertions(+), 6 deletions(-) create mode 100644 espanso/.gitignore create mode 100644 espanso/config/default.yml create mode 100644 espanso/match/base.yml create mode 100644 espanso/match/emoji.yml create mode 100644 espanso/match/img.yml create mode 100644 espanso/match/meth.yml create mode 100644 espanso/match/spelling.yml create mode 100644 espanso/match/sub.yml create mode 100644 espanso/match/sup.yml create mode 100644 espanso/match/utils.yml diff --git a/README.md b/README.md index ddc5497..a4368cd 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@ config stuff (i need to move everything into one place) # links for this to work * `~/.ideavimrc` -> `./idea/.ideavimrc` +* `$XDG_CONFIG_HOME/espanso` -> `./espanso` +* `./espanso/assets` -> `` (asset dir is sth that syncs media) # 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 index 0fb67bb..447890c 100644 --- a/_windows/ahk/capslock.ahk +++ b/_windows/ahk/capslock.ahk @@ -97,12 +97,12 @@ CapsLock::{ } } -!CapsLock::{ - return -} -^CapsLock::{ - return -} +; !CapsLock::{ +; return +; } +; ^CapsLock::{ +; return +; } ^!CapsLock::{ return } diff --git a/espanso/.gitignore b/espanso/.gitignore new file mode 100644 index 0000000..d93aea1 --- /dev/null +++ b/espanso/.gitignore @@ -0,0 +1 @@ +/assets diff --git a/espanso/config/default.yml b/espanso/config/default.yml new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/espanso/config/default.yml @@ -0,0 +1 @@ +{} diff --git a/espanso/match/base.yml b/espanso/match/base.yml new file mode 100644 index 0000000..eb516ef --- /dev/null +++ b/espanso/match/base.yml @@ -0,0 +1 @@ +matches: diff --git a/espanso/match/emoji.yml b/espanso/match/emoji.yml new file mode 100644 index 0000000..9485971 --- /dev/null +++ b/espanso/match/emoji.yml @@ -0,0 +1,39 @@ +matches: + - trigger: ;;slightsm + replace: πŸ™‚ + - trigger: ;;slightfr + replace: πŸ™ + - trigger: ;;moyai + replace: πŸ—Ώ + - trigger: ;;thup + replace: πŸ‘ + - trigger: ;;thdown + replace: πŸ‘Ž + - trigger: ;;skull + replace: πŸ’€ + - trigger: ;;weary + replace: 😩 + - trigger: ;;nerd + replace: πŸ€“ + - trigger: ;;sung + replace: 😎 + - trigger: ;;fire + replace: πŸ”₯ + - trigger: ;;eyes + replace: πŸ‘€ + - trigger: ;;fax + replace: πŸ“  + - trigger: ;;whcheck + replace: βœ… + - trigger: ;;cross + replace: ❌ + - trigger: ;;pensive + replace: πŸ˜” + - trigger: ;;raisedeye + replace: 🀨 + - trigger: ;;plead + replace: πŸ₯Ί + - trigger: ;;pointup + replace: ☝️ + - trigger: ;;shock + replace: 😱 diff --git a/espanso/match/img.yml b/espanso/match/img.yml new file mode 100644 index 0000000..47da2a8 --- /dev/null +++ b/espanso/match/img.yml @@ -0,0 +1,19 @@ +matches: + - trigger: ;;ipipe + image_path: "$CONFIG\\assets\\pipe.png" + - trigger: ;;ialert + image_path: "$CONFIG\\assets\\alert.png" + - trigger: ;;imiska + image_path: "$CONFIG\\assets\\kot_w_misce.png" + - trigger: ;;ikot + image_path: "$CONFIG\\assets\\kot.png" + - trigger: ;;iwifereaction + image_path: "$CONFIG\\assets\\my_wife_reaction_to_that_information.png" + - trigger: ;;iahh + image_path: "$CONFIG\\assets\\ahh.png" + - trigger: ;;ihuh + image_path: "$CONFIG\\assets\\huh.png" + - trigger: ;;irozpacz + image_path: "$CONFIG\\assets\\rozpacz.png" + - trigger: ;;iangry + image_path: "$CONFIG\\assets\\angry.png" diff --git a/espanso/match/meth.yml b/espanso/match/meth.yml new file mode 100644 index 0000000..0beb698 --- /dev/null +++ b/espanso/match/meth.yml @@ -0,0 +1,13 @@ +matches: + - trigger: ;;\cdot + replace: β‹… + - trigger: ;;\degree + replace: Β° + - trigger: ;;\beta + replace: Ξ² + - trigger: ;;\Delta + replace: Ξ” + - trigger: ;;\lambda + replace: Ξ» + - trigger: ;;\Omega + replace: Ξ© diff --git a/espanso/match/spelling.yml b/espanso/match/spelling.yml new file mode 100644 index 0000000..655b156 --- /dev/null +++ b/espanso/match/spelling.yml @@ -0,0 +1,5 @@ +matches: + - trigger: "nei" + replace: "nie" + word: true + propagate_case: true diff --git a/espanso/match/sub.yml b/espanso/match/sub.yml new file mode 100644 index 0000000..8c4d11f --- /dev/null +++ b/espanso/match/sub.yml @@ -0,0 +1,21 @@ +matches: + - trigger: ;;_0 + replace: β‚€ + - trigger: ;;_1 + replace: ₁ + - trigger: ;;_2 + replace: β‚‚ + - trigger: ;;_3 + replace: ₃ + - trigger: ;;_4 + replace: β‚„ + - trigger: ;;_5 + replace: β‚… + - trigger: ;;_6 + replace: ₆ + - trigger: ;;_7 + replace: ₇ + - trigger: ;;_8 + replace: β‚ˆ + - trigger: ;;_9 + replace: ₉ diff --git a/espanso/match/sup.yml b/espanso/match/sup.yml new file mode 100644 index 0000000..b67dfb7 --- /dev/null +++ b/espanso/match/sup.yml @@ -0,0 +1,21 @@ +matches: + - trigger: ;;^0 + replace: ⁰ + - trigger: ;;^1 + replace: ΒΉ + - trigger: ;;^2 + replace: Β² + - trigger: ;;^3 + replace: Β³ + - trigger: ;;^4 + replace: ⁴ + - trigger: ;;^5 + replace: ⁡ + - trigger: ;;^6 + replace: ⁢ + - trigger: ;;^7 + replace: ⁷ + - trigger: ;;^8 + replace: ⁸ + - trigger: ;;^9 + replace: ⁹ diff --git a/espanso/match/utils.yml b/espanso/match/utils.yml new file mode 100644 index 0000000..e43b7e6 --- /dev/null +++ b/espanso/match/utils.yml @@ -0,0 +1,20 @@ +matches: + - trigger: ;;now + replace: "{{time}}" + vars: + - name: time + type: date + params: + format: "%Y-%m-%d %H:%M:%S" + - trigger: ;;shrug + replace: Β―\_(ツ)_/Β― + - trigger: ;;bshrug + replace: Β―\\\_(ツ)_/Β― + - trigger: ;;lenny + replace: ( Ν‘Β° ΝœΚ– Ν‘Β°) + - trigger: ;;flip + replace: (β•―Β°β–‘Β°)β•―οΈ΅ ┻━┻ + - trigger: ;;unflip + replace: β”¬β”€β”¬γƒŽ( ΒΊ _ ΒΊγƒŽ) + - trigger: ;;tm + replace: β„’ -- cgit v1.3.1 From 9abff5717944b660dd8aa4dd73f566d02d6fbe08 Mon Sep 17 00:00:00 2001 From: kkard2 Date: Mon, 10 Jul 2023 18:53:28 +0200 Subject: ok this is too inconvenient --- _windows/ahk/capslock.ahk | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/_windows/ahk/capslock.ahk b/_windows/ahk/capslock.ahk index 447890c..0fb67bb 100644 --- a/_windows/ahk/capslock.ahk +++ b/_windows/ahk/capslock.ahk @@ -97,12 +97,12 @@ CapsLock::{ } } -; !CapsLock::{ -; return -; } -; ^CapsLock::{ -; return -; } +!CapsLock::{ + return +} +^CapsLock::{ + return +} ^!CapsLock::{ return } -- cgit v1.3.1 From c4f199cdb0ece409553f169346bdbc19e5fdf1f0 Mon Sep 17 00:00:00 2001 From: kkard2 Date: Mon, 10 Jul 2023 19:16:04 +0200 Subject: update_from_assets.py --- espanso/match/img.yml | 30 +++++++++++++++--------------- espanso/update_from_assets.py | 20 ++++++++++++++++++++ 2 files changed, 35 insertions(+), 15 deletions(-) create mode 100644 espanso/update_from_assets.py diff --git a/espanso/match/img.yml b/espanso/match/img.yml index 47da2a8..45ffcdf 100644 --- a/espanso/match/img.yml +++ b/espanso/match/img.yml @@ -1,19 +1,19 @@ matches: - - trigger: ;;ipipe - image_path: "$CONFIG\\assets\\pipe.png" - - trigger: ;;ialert - image_path: "$CONFIG\\assets\\alert.png" - - trigger: ;;imiska - image_path: "$CONFIG\\assets\\kot_w_misce.png" - - trigger: ;;ikot - image_path: "$CONFIG\\assets\\kot.png" - - trigger: ;;iwifereaction - image_path: "$CONFIG\\assets\\my_wife_reaction_to_that_information.png" - trigger: ;;iahh - image_path: "$CONFIG\\assets\\ahh.png" + image_path: $CONFIG/assets/img/ahh.png + - trigger: ;;ialert + image_path: $CONFIG/assets/img/alert.png + - trigger: ;;iangry + image_path: $CONFIG/assets/img/angry.png - trigger: ;;ihuh - image_path: "$CONFIG\\assets\\huh.png" + image_path: $CONFIG/assets/img/huh.png + - trigger: ;;ikot + image_path: $CONFIG/assets/img/kot.png + - trigger: ;;ikot_w_misce + image_path: $CONFIG/assets/img/kot_w_misce.png + - trigger: ;;imy_wife_reaction_to_that_information + image_path: $CONFIG/assets/img/my_wife_reaction_to_that_information.png + - trigger: ;;ipipe + image_path: $CONFIG/assets/img/pipe.png - trigger: ;;irozpacz - image_path: "$CONFIG\\assets\\rozpacz.png" - - trigger: ;;iangry - image_path: "$CONFIG\\assets\\angry.png" + image_path: $CONFIG/assets/img/rozpacz.png diff --git a/espanso/update_from_assets.py b/espanso/update_from_assets.py new file mode 100644 index 0000000..e2b76d5 --- /dev/null +++ b/espanso/update_from_assets.py @@ -0,0 +1,20 @@ +import os + + +def generate(path, output_file, prefix): + files = [ + f for f in os.listdir(path) if os.path.isfile(os.path.join(path, f)) + ] + + with open(output_file, 'w') as f: + f.write('matches:\n') + + for file in files: + path_wo_ext = os.path.splitext(file)[0] + f.write(' - trigger: ;;' + prefix + path_wo_ext + '\n') + f.write( + ' image_path: $CONFIG/' + path + '/' + file + '\n') + + +if __name__ == '__main__': + generate('assets/img', 'match/img.yml', 'i') -- cgit v1.3.1 From d5c3502ba0a706122a4e9fdf22af55b56a721649 Mon Sep 17 00:00:00 2001 From: kkard2 Date: Mon, 10 Jul 2023 19:34:23 +0200 Subject: don't store auto-generated things --- README.md | 3 +++ espanso/match/.gitignore | 2 ++ espanso/match/img.yml | 19 ------------------- 3 files changed, 5 insertions(+), 19 deletions(-) create mode 100644 espanso/match/.gitignore delete mode 100644 espanso/match/img.yml diff --git a/README.md b/README.md index a4368cd..4e7a206 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,9 @@ # .dotfiles config stuff (i need to move everything into one place) +# running +* run `./espanso/update_from_assets.py` + # links for this to work * `~/.ideavimrc` -> `./idea/.ideavimrc` * `$XDG_CONFIG_HOME/espanso` -> `./espanso` diff --git a/espanso/match/.gitignore b/espanso/match/.gitignore new file mode 100644 index 0000000..42cb622 --- /dev/null +++ b/espanso/match/.gitignore @@ -0,0 +1,2 @@ +img.yml +gif.yml diff --git a/espanso/match/img.yml b/espanso/match/img.yml deleted file mode 100644 index 45ffcdf..0000000 --- a/espanso/match/img.yml +++ /dev/null @@ -1,19 +0,0 @@ -matches: - - trigger: ;;iahh - image_path: $CONFIG/assets/img/ahh.png - - trigger: ;;ialert - image_path: $CONFIG/assets/img/alert.png - - trigger: ;;iangry - image_path: $CONFIG/assets/img/angry.png - - trigger: ;;ihuh - image_path: $CONFIG/assets/img/huh.png - - trigger: ;;ikot - image_path: $CONFIG/assets/img/kot.png - - trigger: ;;ikot_w_misce - image_path: $CONFIG/assets/img/kot_w_misce.png - - trigger: ;;imy_wife_reaction_to_that_information - image_path: $CONFIG/assets/img/my_wife_reaction_to_that_information.png - - trigger: ;;ipipe - image_path: $CONFIG/assets/img/pipe.png - - trigger: ;;irozpacz - image_path: $CONFIG/assets/img/rozpacz.png -- cgit v1.3.1 From 8e0612846261c0353f705ef8ffebaf03c5d466cb Mon Sep 17 00:00:00 2001 From: kkard2 Date: Mon, 10 Jul 2023 19:37:23 +0200 Subject: add autogeneration --- espanso/update_from_assets.py | 1 + 1 file changed, 1 insertion(+) diff --git a/espanso/update_from_assets.py b/espanso/update_from_assets.py index e2b76d5..d62b878 100644 --- a/espanso/update_from_assets.py +++ b/espanso/update_from_assets.py @@ -18,3 +18,4 @@ def generate(path, output_file, prefix): if __name__ == '__main__': generate('assets/img', 'match/img.yml', 'i') + generate('assets/gif', 'match/gif.yml', 'g') -- cgit v1.3.1 From f8d9727953637e992e220c91f0bba3ae78d9a567 Mon Sep 17 00:00:00 2001 From: kkard2 Date: Mon, 10 Jul 2023 20:10:09 +0200 Subject: gifs don't work xdd --- espanso/match/.gitignore | 1 - espanso/match/gif.yml | 15 +++++++++++++++ espanso/update_from_assets.py | 1 - 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 espanso/match/gif.yml diff --git a/espanso/match/.gitignore b/espanso/match/.gitignore index 42cb622..845e553 100644 --- a/espanso/match/.gitignore +++ b/espanso/match/.gitignore @@ -1,2 +1 @@ img.yml -gif.yml diff --git a/espanso/match/gif.yml b/espanso/match/gif.yml new file mode 100644 index 0000000..21fb932 --- /dev/null +++ b/espanso/match/gif.yml @@ -0,0 +1,15 @@ +matches: + - trigger: ;;gblack + image_path: $CONFIG/assets/gif/black.gif + - trigger: ;;gfirewrite + image_path: $CONFIG/assets/gif/firewrite.gif + - trigger: ;;ghilarious + image_path: $CONFIG/assets/gif/hilarious.gif + - trigger: ;;gofc + image_path: $CONFIG/assets/gif/ofc.gif + - trigger: ;;gpipe + image_path: $CONFIG/assets/gif/pipe.gif + - trigger: ;;gwhar + image_path: $CONFIG/assets/gif/whar.gif + - trigger: ;;gwhite + image_path: $CONFIG/assets/gif/white.gif diff --git a/espanso/update_from_assets.py b/espanso/update_from_assets.py index d62b878..e2b76d5 100644 --- a/espanso/update_from_assets.py +++ b/espanso/update_from_assets.py @@ -18,4 +18,3 @@ def generate(path, output_file, prefix): if __name__ == '__main__': generate('assets/img', 'match/img.yml', 'i') - generate('assets/gif', 'match/gif.yml', 'g') -- cgit v1.3.1 From ee97c509840aec5208bb24c097df8bd62d6cc4ce Mon Sep 17 00:00:00 2001 From: kkard2 Date: Tue, 11 Jul 2023 10:00:41 +0200 Subject: goto references --- idea/.ideavimrc | 1 + 1 file changed, 1 insertion(+) diff --git a/idea/.ideavimrc b/idea/.ideavimrc index d5dbe25..7b93851 100644 --- a/idea/.ideavimrc +++ b/idea/.ideavimrc @@ -88,6 +88,7 @@ nmap a (GotoAction) " goto is a bad language feature nmap gd (GotoDeclaration) nmap gi (GotoImplementation) +nmap gr (FindUsages) nmap gh (QuickJavaDoc) nmap ge (GotoNextError) nmap gE (GotoPreviousError) -- cgit v1.3.1