From a1a078c976b46a33a46021a87c2d11e1c743aa91 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Mon, 10 Feb 2025 02:28:38 +0000 Subject: [PATCH] fix(karabiner/custom): use correct identifier for Warp --- config/mise/config.toml | 24 +- install.sh | 1 + .../emacs-control-keys-rev-11-custom.json | 1664 ++++++++--------- karabiner/emacs-option-keys-rev-5-custom.json | 583 +++--- zsh/golang.zsh | 22 +- zsh/kubernetes.zsh | 29 +- zsh/ruby.zsh | 1 - 7 files changed, 1198 insertions(+), 1126 deletions(-) diff --git a/config/mise/config.toml b/config/mise/config.toml index 1461d53..87b8a1f 100644 --- a/config/mise/config.toml +++ b/config/mise/config.toml @@ -26,16 +26,16 @@ uvx = true "cargo:eza" = "latest" "cargo:kubectl-watch" = "latest" "cargo:paper-terminal" = "latest" -"go:github.com/go-delve/delve/cmd/dlv" = "latest" -"go:github.com/rakyll/hey" = "latest" -"go:github.com/rogpeppe/godef" = "latest" -"go:go.uber.org/mock/mockgen" = "latest" -"go:golang.org/x/tools/cmd/godoc" = "latest" -"go:golang.org/x/tools/cmd/goimports" = "latest" -"go:golang.org/x/tools/gopls" = "latest" -"go:golang.org/x/vuln/cmd/govulncheck" = "latest" -"go:google.golang.org/grpc/cmd/protoc-gen-go-grpc" = "latest" -"go:google.golang.org/protobuf/cmd/protoc-gen-go" = "latest" +# "go:github.com/go-delve/delve/cmd/dlv" = "latest" +# "go:github.com/rakyll/hey" = "latest" +# "go:github.com/rogpeppe/godef" = "latest" +# "go:go.uber.org/mock/mockgen" = "latest" +# "go:golang.org/x/tools/cmd/godoc" = "latest" +# "go:golang.org/x/tools/cmd/goimports" = "latest" +# "go:golang.org/x/tools/gopls" = "latest" +# "go:golang.org/x/vuln/cmd/govulncheck" = "latest" +# "go:google.golang.org/grpc/cmd/protoc-gen-go-grpc" = "latest" +# "go:google.golang.org/protobuf/cmd/protoc-gen-go" = "latest" "npm:@mermaid-js/mermaid-cli" = "latest" "npm:@prettier/plugin-php" = "latest" "npm:dockerfile-language-server-nodejs" = "latest" @@ -65,7 +65,9 @@ uvx = true "pipx:yamllint" = "latest" 1password-cli = "latest" actionlint = "latest" +argo-rollouts = "latest" argocd = "latest" +aws-cli = "2.17" bat = "latest" buf = "latest" cargo-binstall = "latest" @@ -92,9 +94,11 @@ jq = "latest" jwt = "latest" jwtui = "latest" k9s = "latest" +kubecm = "latest" kubectl = "latest" kubectx = "latest" kubelogin = "latest" +kubens = "latest" kustomize = "latest" lua = "latest" node = "lts" diff --git a/install.sh b/install.sh index 68a3434..700b834 100755 --- a/install.sh +++ b/install.sh @@ -23,6 +23,7 @@ SYMLINKS=( config/starship.toml config/tlrc/config.toml config/xkeysnail/config.py + config/k9s erlang gemrc gitconfig diff --git a/karabiner/emacs-control-keys-rev-11-custom.json b/karabiner/emacs-control-keys-rev-11-custom.json index d0943ab..f961059 100644 --- a/karabiner/emacs-control-keys-rev-11-custom.json +++ b/karabiner/emacs-control-keys-rev-11-custom.json @@ -1,835 +1,835 @@ { - "description": "Emacs key bindings [control+keys] (rev 11) [custom]", - "manipulators": [ + "description": "Emacs key bindings [control+keys] (rev 11) [custom]", + "manipulators": [ + { + "conditions": [ { - "conditions": [ - { - "bundle_identifiers": [ - "^org\\.gnu\\.Emacs$", - "^org\\.gnu\\.AquamacsEmacs$", - "^org\\.gnu\\.Aquamacs$", - "^org\\.pqrs\\.unknownapp\\.conkeror$", - "^com\\.microsoft\\.rdc$", - "^com\\.microsoft\\.rdc\\.", - "^net\\.sf\\.cord$", - "^com\\.thinomenon\\.RemoteDesktopConnection$", - "^com\\.itap-mobile\\.qmote$", - "^com\\.nulana\\.remotixmac$", - "^com\\.p5sys\\.jump\\.mac\\.viewer$", - "^com\\.p5sys\\.jump\\.mac\\.viewer\\.", - "^com\\.teamviewer\\.TeamViewer$", - "^com\\.vmware\\.horizon$", - "^com\\.2X\\.Client\\.Mac$", - "^com\\.OpenText\\.Exceed-TurboX-Client$", - "^com\\.realvnc\\.vncviewer$", - "^com\\.citrix\\.receiver\\.icaviewer", - "^com\\.apple\\.Terminal$", - "^com\\.googlecode\\.iterm2$", - "^co\\.zeit\\.hyperterm$", - "^co\\.zeit\\.hyper$", - "^io\\.alacritty$", - "^org\\.alacritty$", - "^net\\.kovidgoyal\\.kitty$", - "^com\\.mitchellh\\.ghostty$", - "^org\\.vim\\.", - "^com\\.qvacua\\.VimR$", - "^com\\.vmware\\.fusion$", - "^com\\.vmware\\.horizon$", - "^com\\.vmware\\.view$", - "^com\\.parallels\\.desktop$", - "^com\\.parallels\\.vm$", - "^com\\.parallels\\.desktop\\.console$", - "^org\\.virtualbox\\.app\\.VirtualBoxVM$", - "^com\\.citrix\\.XenAppViewer$", - "^com\\.vmware\\.proxyApp\\.", - "^com\\.parallels\\.winapp\\.", - "^com\\.utmapp\\.UTM$", - "^org\\.x\\.X11$", - "^com\\.apple\\.x11$", - "^org\\.macosforge\\.xquartz\\.X11$", - "^org\\.macports\\.X11$", - "^com\\.sublimetext\\.", - "^com\\.microsoft\\.VSCode$", - "^com\\.todesktop\\.", - "^dev\\.warp\\.Warp$" - ], - "type": "frontmost_application_unless" - } - ], - "from": { - "key_code": "d", - "modifiers": { - "mandatory": [ - "control" - ], - "optional": [ - "caps_lock", - "option" - ] - } - }, - "to": [ - { - "key_code": "delete_forward" - } - ], - "type": "basic" - }, - { - "conditions": [ - { - "bundle_identifiers": [ - "^org\\.gnu\\.Emacs$", - "^org\\.gnu\\.AquamacsEmacs$", - "^org\\.gnu\\.Aquamacs$", - "^org\\.pqrs\\.unknownapp\\.conkeror$", - "^com\\.microsoft\\.rdc$", - "^com\\.microsoft\\.rdc\\.", - "^net\\.sf\\.cord$", - "^com\\.thinomenon\\.RemoteDesktopConnection$", - "^com\\.itap-mobile\\.qmote$", - "^com\\.nulana\\.remotixmac$", - "^com\\.p5sys\\.jump\\.mac\\.viewer$", - "^com\\.p5sys\\.jump\\.mac\\.viewer\\.", - "^com\\.teamviewer\\.TeamViewer$", - "^com\\.vmware\\.horizon$", - "^com\\.2X\\.Client\\.Mac$", - "^com\\.OpenText\\.Exceed-TurboX-Client$", - "^com\\.realvnc\\.vncviewer$", - "^com\\.citrix\\.receiver\\.icaviewer", - "^com\\.apple\\.Terminal$", - "^com\\.googlecode\\.iterm2$", - "^co\\.zeit\\.hyperterm$", - "^co\\.zeit\\.hyper$", - "^io\\.alacritty$", - "^org\\.alacritty$", - "^net\\.kovidgoyal\\.kitty$", - "^com\\.mitchellh\\.ghostty$", - "^org\\.vim\\.", - "^com\\.qvacua\\.VimR$", - "^com\\.vmware\\.fusion$", - "^com\\.vmware\\.horizon$", - "^com\\.vmware\\.view$", - "^com\\.parallels\\.desktop$", - "^com\\.parallels\\.vm$", - "^com\\.parallels\\.desktop\\.console$", - "^org\\.virtualbox\\.app\\.VirtualBoxVM$", - "^com\\.citrix\\.XenAppViewer$", - "^com\\.vmware\\.proxyApp\\.", - "^com\\.parallels\\.winapp\\.", - "^com\\.utmapp\\.UTM$", - "^org\\.x\\.X11$", - "^com\\.apple\\.x11$", - "^org\\.macosforge\\.xquartz\\.X11$", - "^org\\.macports\\.X11$", - "^com\\.sublimetext\\.", - "^com\\.microsoft\\.VSCode$", - "^com\\.todesktop\\.", - "^dev\\.warp\\.Warp$" - ], - "type": "frontmost_application_unless" - } - ], - "from": { - "key_code": "h", - "modifiers": { - "mandatory": [ - "control" - ], - "optional": [ - "caps_lock", - "option" - ] - } - }, - "to": [ - { - "key_code": "delete_or_backspace" - } - ], - "type": "basic" - }, - { - "conditions": [ - { - "bundle_identifiers": [ - "^org\\.gnu\\.Emacs$", - "^org\\.gnu\\.AquamacsEmacs$", - "^org\\.gnu\\.Aquamacs$", - "^org\\.pqrs\\.unknownapp\\.conkeror$", - "^com\\.microsoft\\.rdc$", - "^com\\.microsoft\\.rdc\\.", - "^net\\.sf\\.cord$", - "^com\\.thinomenon\\.RemoteDesktopConnection$", - "^com\\.itap-mobile\\.qmote$", - "^com\\.nulana\\.remotixmac$", - "^com\\.p5sys\\.jump\\.mac\\.viewer$", - "^com\\.p5sys\\.jump\\.mac\\.viewer\\.", - "^com\\.teamviewer\\.TeamViewer$", - "^com\\.vmware\\.horizon$", - "^com\\.2X\\.Client\\.Mac$", - "^com\\.OpenText\\.Exceed-TurboX-Client$", - "^com\\.realvnc\\.vncviewer$", - "^com\\.citrix\\.receiver\\.icaviewer", - "^com\\.apple\\.Terminal$", - "^com\\.googlecode\\.iterm2$", - "^co\\.zeit\\.hyperterm$", - "^co\\.zeit\\.hyper$", - "^io\\.alacritty$", - "^org\\.alacritty$", - "^net\\.kovidgoyal\\.kitty$", - "^com\\.mitchellh\\.ghostty$", - "^org\\.vim\\.", - "^com\\.qvacua\\.VimR$", - "^com\\.vmware\\.fusion$", - "^com\\.vmware\\.horizon$", - "^com\\.vmware\\.view$", - "^com\\.parallels\\.desktop$", - "^com\\.parallels\\.vm$", - "^com\\.parallels\\.desktop\\.console$", - "^org\\.virtualbox\\.app\\.VirtualBoxVM$", - "^com\\.citrix\\.XenAppViewer$", - "^com\\.vmware\\.proxyApp\\.", - "^com\\.parallels\\.winapp\\.", - "^com\\.utmapp\\.UTM$", - "^org\\.x\\.X11$", - "^com\\.apple\\.x11$", - "^org\\.macosforge\\.xquartz\\.X11$", - "^org\\.macports\\.X11$", - "^com\\.sublimetext\\.", - "^com\\.microsoft\\.VSCode$", - "^com\\.todesktop\\.", - "^dev\\.warp\\.Warp$" - ], - "type": "frontmost_application_unless" - } - ], - "from": { - "key_code": "i", - "modifiers": { - "mandatory": [ - "control" - ], - "optional": [ - "caps_lock", - "shift" - ] - } - }, - "to": [ - { - "key_code": "tab" - } - ], - "type": "basic" - }, - { - "conditions": [ - { - "keyboard_types": [ - "ansi", - "iso" - ], - "type": "keyboard_type_if" - } - ], - "from": { - "key_code": "open_bracket", - "modifiers": { - "mandatory": [ - "control" - ], - "optional": [ - "caps_lock" - ] - } - }, - "to": [ - { - "key_code": "escape" - } - ], - "type": "basic" - }, - { - "conditions": [ - { - "keyboard_types": [ - "jis" - ], - "type": "keyboard_type_if" - } - ], - "from": { - "key_code": "close_bracket", - "modifiers": { - "mandatory": [ - "control" - ], - "optional": [ - "caps_lock" - ] - } - }, - "to": [ - { - "key_code": "escape" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "m", - "modifiers": { - "mandatory": [ - "control" - ], - "optional": [ - "caps_lock", - "shift", - "option" - ] - } - }, - "to": [ - { - "key_code": "return_or_enter" - } - ], - "type": "basic" - }, - { - "conditions": [ - { - "bundle_identifiers": [ - "^org\\.gnu\\.Emacs$", - "^org\\.gnu\\.AquamacsEmacs$", - "^org\\.gnu\\.Aquamacs$", - "^org\\.pqrs\\.unknownapp\\.conkeror$", - "^com\\.microsoft\\.rdc$", - "^com\\.microsoft\\.rdc\\.", - "^net\\.sf\\.cord$", - "^com\\.thinomenon\\.RemoteDesktopConnection$", - "^com\\.itap-mobile\\.qmote$", - "^com\\.nulana\\.remotixmac$", - "^com\\.p5sys\\.jump\\.mac\\.viewer$", - "^com\\.p5sys\\.jump\\.mac\\.viewer\\.", - "^com\\.teamviewer\\.TeamViewer$", - "^com\\.vmware\\.horizon$", - "^com\\.2X\\.Client\\.Mac$", - "^com\\.OpenText\\.Exceed-TurboX-Client$", - "^com\\.realvnc\\.vncviewer$", - "^com\\.citrix\\.receiver\\.icaviewer", - "^com\\.apple\\.Terminal$", - "^com\\.googlecode\\.iterm2$", - "^co\\.zeit\\.hyperterm$", - "^co\\.zeit\\.hyper$", - "^io\\.alacritty$", - "^org\\.alacritty$", - "^net\\.kovidgoyal\\.kitty$", - "^com\\.mitchellh\\.ghostty$", - "^org\\.vim\\.", - "^com\\.qvacua\\.VimR$", - "^com\\.vmware\\.fusion$", - "^com\\.vmware\\.horizon$", - "^com\\.vmware\\.view$", - "^com\\.parallels\\.desktop$", - "^com\\.parallels\\.vm$", - "^com\\.parallels\\.desktop\\.console$", - "^org\\.virtualbox\\.app\\.VirtualBoxVM$", - "^com\\.citrix\\.XenAppViewer$", - "^com\\.vmware\\.proxyApp\\.", - "^com\\.parallels\\.winapp\\.", - "^com\\.utmapp\\.UTM$", - "^org\\.x\\.X11$", - "^com\\.apple\\.x11$", - "^org\\.macosforge\\.xquartz\\.X11$", - "^org\\.macports\\.X11$", - "^com\\.sublimetext\\.", - "^com\\.microsoft\\.VSCode$", - "^com\\.todesktop\\.", - "^dev\\.warp\\.Warp$" - ], - "type": "frontmost_application_unless" - } - ], - "from": { - "key_code": "b", - "modifiers": { - "mandatory": [ - "control" - ], - "optional": [ - "caps_lock", - "shift", - "option" - ] - } - }, - "to": [ - { - "key_code": "left_arrow" - } - ], - "type": "basic" - }, - { - "conditions": [ - { - "bundle_identifiers": [ - "^org\\.gnu\\.Emacs$", - "^org\\.gnu\\.AquamacsEmacs$", - "^org\\.gnu\\.Aquamacs$", - "^org\\.pqrs\\.unknownapp\\.conkeror$", - "^com\\.microsoft\\.rdc$", - "^com\\.microsoft\\.rdc\\.", - "^net\\.sf\\.cord$", - "^com\\.thinomenon\\.RemoteDesktopConnection$", - "^com\\.itap-mobile\\.qmote$", - "^com\\.nulana\\.remotixmac$", - "^com\\.p5sys\\.jump\\.mac\\.viewer$", - "^com\\.p5sys\\.jump\\.mac\\.viewer\\.", - "^com\\.teamviewer\\.TeamViewer$", - "^com\\.vmware\\.horizon$", - "^com\\.2X\\.Client\\.Mac$", - "^com\\.OpenText\\.Exceed-TurboX-Client$", - "^com\\.realvnc\\.vncviewer$", - "^com\\.citrix\\.receiver\\.icaviewer", - "^com\\.apple\\.Terminal$", - "^com\\.googlecode\\.iterm2$", - "^co\\.zeit\\.hyperterm$", - "^co\\.zeit\\.hyper$", - "^io\\.alacritty$", - "^org\\.alacritty$", - "^net\\.kovidgoyal\\.kitty$", - "^com\\.mitchellh\\.ghostty$", - "^org\\.vim\\.", - "^com\\.qvacua\\.VimR$", - "^com\\.vmware\\.fusion$", - "^com\\.vmware\\.horizon$", - "^com\\.vmware\\.view$", - "^com\\.parallels\\.desktop$", - "^com\\.parallels\\.vm$", - "^com\\.parallels\\.desktop\\.console$", - "^org\\.virtualbox\\.app\\.VirtualBoxVM$", - "^com\\.citrix\\.XenAppViewer$", - "^com\\.vmware\\.proxyApp\\.", - "^com\\.parallels\\.winapp\\.", - "^com\\.utmapp\\.UTM$", - "^org\\.x\\.X11$", - "^com\\.apple\\.x11$", - "^org\\.macosforge\\.xquartz\\.X11$", - "^org\\.macports\\.X11$", - "^com\\.sublimetext\\.", - "^com\\.microsoft\\.VSCode$", - "^com\\.todesktop\\.", - "^dev\\.warp\\.Warp$" - ], - "type": "frontmost_application_unless" - } - ], - "from": { - "key_code": "f", - "modifiers": { - "mandatory": [ - "control" - ], - "optional": [ - "caps_lock", - "shift", - "option" - ] - } - }, - "to": [ - { - "key_code": "right_arrow" - } - ], - "type": "basic" - }, - { - "conditions": [ - { - "bundle_identifiers": [ - "^org\\.gnu\\.Emacs$", - "^org\\.gnu\\.AquamacsEmacs$", - "^org\\.gnu\\.Aquamacs$", - "^org\\.pqrs\\.unknownapp\\.conkeror$", - "^com\\.microsoft\\.rdc$", - "^com\\.microsoft\\.rdc\\.", - "^net\\.sf\\.cord$", - "^com\\.thinomenon\\.RemoteDesktopConnection$", - "^com\\.itap-mobile\\.qmote$", - "^com\\.nulana\\.remotixmac$", - "^com\\.p5sys\\.jump\\.mac\\.viewer$", - "^com\\.p5sys\\.jump\\.mac\\.viewer\\.", - "^com\\.teamviewer\\.TeamViewer$", - "^com\\.vmware\\.horizon$", - "^com\\.2X\\.Client\\.Mac$", - "^com\\.OpenText\\.Exceed-TurboX-Client$", - "^com\\.realvnc\\.vncviewer$", - "^com\\.citrix\\.receiver\\.icaviewer", - "^com\\.apple\\.Terminal$", - "^com\\.googlecode\\.iterm2$", - "^co\\.zeit\\.hyperterm$", - "^co\\.zeit\\.hyper$", - "^io\\.alacritty$", - "^org\\.alacritty$", - "^net\\.kovidgoyal\\.kitty$", - "^com\\.mitchellh\\.ghostty$", - "^org\\.vim\\.", - "^com\\.qvacua\\.VimR$", - "^com\\.vmware\\.fusion$", - "^com\\.vmware\\.horizon$", - "^com\\.vmware\\.view$", - "^com\\.parallels\\.desktop$", - "^com\\.parallels\\.vm$", - "^com\\.parallels\\.desktop\\.console$", - "^org\\.virtualbox\\.app\\.VirtualBoxVM$", - "^com\\.citrix\\.XenAppViewer$", - "^com\\.vmware\\.proxyApp\\.", - "^com\\.parallels\\.winapp\\.", - "^com\\.utmapp\\.UTM$", - "^org\\.x\\.X11$", - "^com\\.apple\\.x11$", - "^org\\.macosforge\\.xquartz\\.X11$", - "^org\\.macports\\.X11$", - "^com\\.sublimetext\\.", - "^com\\.microsoft\\.VSCode$", - "^com\\.todesktop\\.", - "^dev\\.warp\\.Warp$" - ], - "type": "frontmost_application_unless" - } - ], - "from": { - "key_code": "n", - "modifiers": { - "mandatory": [ - "control" - ], - "optional": [ - "caps_lock", - "shift", - "option" - ] - } - }, - "to": [ - { - "key_code": "down_arrow" - } - ], - "type": "basic" - }, - { - "conditions": [ - { - "bundle_identifiers": [ - "^org\\.gnu\\.Emacs$", - "^org\\.gnu\\.AquamacsEmacs$", - "^org\\.gnu\\.Aquamacs$", - "^org\\.pqrs\\.unknownapp\\.conkeror$", - "^com\\.microsoft\\.rdc$", - "^com\\.microsoft\\.rdc\\.", - "^net\\.sf\\.cord$", - "^com\\.thinomenon\\.RemoteDesktopConnection$", - "^com\\.itap-mobile\\.qmote$", - "^com\\.nulana\\.remotixmac$", - "^com\\.p5sys\\.jump\\.mac\\.viewer$", - "^com\\.p5sys\\.jump\\.mac\\.viewer\\.", - "^com\\.teamviewer\\.TeamViewer$", - "^com\\.vmware\\.horizon$", - "^com\\.2X\\.Client\\.Mac$", - "^com\\.OpenText\\.Exceed-TurboX-Client$", - "^com\\.realvnc\\.vncviewer$", - "^com\\.citrix\\.receiver\\.icaviewer", - "^com\\.apple\\.Terminal$", - "^com\\.googlecode\\.iterm2$", - "^co\\.zeit\\.hyperterm$", - "^co\\.zeit\\.hyper$", - "^io\\.alacritty$", - "^org\\.alacritty$", - "^net\\.kovidgoyal\\.kitty$", - "^com\\.mitchellh\\.ghostty$", - "^org\\.vim\\.", - "^com\\.qvacua\\.VimR$", - "^com\\.vmware\\.fusion$", - "^com\\.vmware\\.horizon$", - "^com\\.vmware\\.view$", - "^com\\.parallels\\.desktop$", - "^com\\.parallels\\.vm$", - "^com\\.parallels\\.desktop\\.console$", - "^org\\.virtualbox\\.app\\.VirtualBoxVM$", - "^com\\.citrix\\.XenAppViewer$", - "^com\\.vmware\\.proxyApp\\.", - "^com\\.parallels\\.winapp\\.", - "^com\\.utmapp\\.UTM$", - "^org\\.x\\.X11$", - "^com\\.apple\\.x11$", - "^org\\.macosforge\\.xquartz\\.X11$", - "^org\\.macports\\.X11$", - "^com\\.sublimetext\\.", - "^com\\.microsoft\\.VSCode$", - "^com\\.todesktop\\.", - "^dev\\.warp\\.Warp$" - ], - "type": "frontmost_application_unless" - } - ], - "from": { - "key_code": "p", - "modifiers": { - "mandatory": [ - "control" - ], - "optional": [ - "caps_lock", - "shift", - "option" - ] - } - }, - "to": [ - { - "key_code": "up_arrow" - } - ], - "type": "basic" - }, - { - "conditions": [ - { - "bundle_identifiers": [ - "^org\\.gnu\\.Emacs$", - "^org\\.gnu\\.AquamacsEmacs$", - "^org\\.gnu\\.Aquamacs$", - "^org\\.pqrs\\.unknownapp\\.conkeror$", - "^com\\.microsoft\\.rdc$", - "^com\\.microsoft\\.rdc\\.", - "^net\\.sf\\.cord$", - "^com\\.thinomenon\\.RemoteDesktopConnection$", - "^com\\.itap-mobile\\.qmote$", - "^com\\.nulana\\.remotixmac$", - "^com\\.p5sys\\.jump\\.mac\\.viewer$", - "^com\\.p5sys\\.jump\\.mac\\.viewer\\.", - "^com\\.teamviewer\\.TeamViewer$", - "^com\\.vmware\\.horizon$", - "^com\\.2X\\.Client\\.Mac$", - "^com\\.OpenText\\.Exceed-TurboX-Client$", - "^com\\.realvnc\\.vncviewer$", - "^com\\.citrix\\.receiver\\.icaviewer", - "^com\\.apple\\.Terminal$", - "^com\\.googlecode\\.iterm2$", - "^co\\.zeit\\.hyperterm$", - "^co\\.zeit\\.hyper$", - "^io\\.alacritty$", - "^org\\.alacritty$", - "^net\\.kovidgoyal\\.kitty$", - "^com\\.mitchellh\\.ghostty$", - "^org\\.vim\\.", - "^com\\.qvacua\\.VimR$", - "^com\\.vmware\\.fusion$", - "^com\\.vmware\\.horizon$", - "^com\\.vmware\\.view$", - "^com\\.parallels\\.desktop$", - "^com\\.parallels\\.vm$", - "^com\\.parallels\\.desktop\\.console$", - "^org\\.virtualbox\\.app\\.VirtualBoxVM$", - "^com\\.citrix\\.XenAppViewer$", - "^com\\.vmware\\.proxyApp\\.", - "^com\\.parallels\\.winapp\\.", - "^com\\.utmapp\\.UTM$", - "^org\\.x\\.X11$", - "^com\\.apple\\.x11$", - "^org\\.macosforge\\.xquartz\\.X11$", - "^org\\.macports\\.X11$", - "^com\\.sublimetext\\.", - "^com\\.microsoft\\.VSCode$", - "^com\\.todesktop\\.", - "^dev\\.warp\\.Warp$" - ], - "type": "frontmost_application_unless" - } - ], - "from": { - "key_code": "v", - "modifiers": { - "mandatory": [ - "control" - ], - "optional": [ - "caps_lock", - "shift" - ] - } - }, - "to": [ - { - "key_code": "page_down" - } - ], - "type": "basic" - }, - { - "conditions": [ - { - "bundle_identifiers": [ - "^com\\.microsoft\\.Excel$", - "^com\\.microsoft\\.Powerpoint$", - "^com\\.microsoft\\.Word$" - ], - "type": "frontmost_application_if" - } - ], - "from": { - "key_code": "a", - "modifiers": { - "mandatory": [ - "control" - ], - "optional": [ - "caps_lock", - "shift" - ] - } - }, - "to": [ - { - "key_code": "home" - } - ], - "type": "basic" - }, - { - "conditions": [ - { - "bundle_identifiers": [ - "^com\\.microsoft\\.Excel$", - "^com\\.microsoft\\.Powerpoint$", - "^com\\.microsoft\\.Word$" - ], - "type": "frontmost_application_if" - } - ], - "from": { - "key_code": "e", - "modifiers": { - "mandatory": [ - "control" - ], - "optional": [ - "caps_lock", - "shift" - ] - } - }, - "to": [ - { - "key_code": "end" - } - ], - "type": "basic" - }, - { - "conditions": [ - { - "bundle_identifiers": [ - "^com\\.microsoft\\.Excel$", - "^com\\.microsoft\\.Powerpoint$", - "^com\\.microsoft\\.Word$" - ], - "type": "frontmost_application_if" - } - ], - "from": { - "key_code": "k", - "modifiers": { - "mandatory": [ - "control" - ], - "optional": [ - "caps_lock", - "shift" - ] - } - }, - "to": [ - { - "key_code": "end", - "modifiers": [ - "left_shift" - ] - }, - { - "key_code": "delete_forward" - } - ], - "type": "basic" - }, - { - "conditions": [ - { - "bundle_identifiers": [ - "^org\\.eclipse\\.platform\\.ide$" - ], - "type": "frontmost_application_if" - } - ], - "from": { - "key_code": "a", - "modifiers": { - "mandatory": [ - "control" - ], - "optional": [ - "caps_lock", - "shift" - ] - } - }, - "to": [ - { - "key_code": "left_arrow", - "modifiers": [ - "left_command" - ] - } - ], - "type": "basic" - }, - { - "conditions": [ - { - "bundle_identifiers": [ - "^org\\.eclipse\\.platform\\.ide$" - ], - "type": "frontmost_application_if" - } - ], - "from": { - "key_code": "e", - "modifiers": { - "mandatory": [ - "control" - ], - "optional": [ - "caps_lock", - "shift" - ] - } - }, - "to": [ - { - "key_code": "right_arrow", - "modifiers": [ - "left_command" - ] - } - ], - "type": "basic" + "bundle_identifiers": [ + "^org\\.gnu\\.Emacs$", + "^org\\.gnu\\.AquamacsEmacs$", + "^org\\.gnu\\.Aquamacs$", + "^org\\.pqrs\\.unknownapp\\.conkeror$", + "^com\\.microsoft\\.rdc$", + "^com\\.microsoft\\.rdc\\.", + "^net\\.sf\\.cord$", + "^com\\.thinomenon\\.RemoteDesktopConnection$", + "^com\\.itap-mobile\\.qmote$", + "^com\\.nulana\\.remotixmac$", + "^com\\.p5sys\\.jump\\.mac\\.viewer$", + "^com\\.p5sys\\.jump\\.mac\\.viewer\\.", + "^com\\.teamviewer\\.TeamViewer$", + "^com\\.vmware\\.horizon$", + "^com\\.2X\\.Client\\.Mac$", + "^com\\.OpenText\\.Exceed-TurboX-Client$", + "^com\\.realvnc\\.vncviewer$", + "^com\\.citrix\\.receiver\\.icaviewer", + "^com\\.apple\\.Terminal$", + "^com\\.googlecode\\.iterm2$", + "^co\\.zeit\\.hyperterm$", + "^co\\.zeit\\.hyper$", + "^io\\.alacritty$", + "^org\\.alacritty$", + "^net\\.kovidgoyal\\.kitty$", + "^com\\.mitchellh\\.ghostty$", + "^org\\.vim\\.", + "^com\\.qvacua\\.VimR$", + "^com\\.vmware\\.fusion$", + "^com\\.vmware\\.horizon$", + "^com\\.vmware\\.view$", + "^com\\.parallels\\.desktop$", + "^com\\.parallels\\.vm$", + "^com\\.parallels\\.desktop\\.console$", + "^org\\.virtualbox\\.app\\.VirtualBoxVM$", + "^com\\.citrix\\.XenAppViewer$", + "^com\\.vmware\\.proxyApp\\.", + "^com\\.parallels\\.winapp\\.", + "^com\\.utmapp\\.UTM$", + "^org\\.x\\.X11$", + "^com\\.apple\\.x11$", + "^org\\.macosforge\\.xquartz\\.X11$", + "^org\\.macports\\.X11$", + "^com\\.sublimetext\\.", + "^com\\.microsoft\\.VSCode$", + "^com\\.todesktop\\.", + "^dev\\.warp\\.Warp" + ], + "type": "frontmost_application_unless" } - ] -} \ No newline at end of file + ], + "from": { + "key_code": "d", + "modifiers": { + "mandatory": [ + "control" + ], + "optional": [ + "caps_lock", + "option" + ] + } + }, + "to": [ + { + "key_code": "delete_forward" + } + ], + "type": "basic" + }, + { + "conditions": [ + { + "bundle_identifiers": [ + "^org\\.gnu\\.Emacs$", + "^org\\.gnu\\.AquamacsEmacs$", + "^org\\.gnu\\.Aquamacs$", + "^org\\.pqrs\\.unknownapp\\.conkeror$", + "^com\\.microsoft\\.rdc$", + "^com\\.microsoft\\.rdc\\.", + "^net\\.sf\\.cord$", + "^com\\.thinomenon\\.RemoteDesktopConnection$", + "^com\\.itap-mobile\\.qmote$", + "^com\\.nulana\\.remotixmac$", + "^com\\.p5sys\\.jump\\.mac\\.viewer$", + "^com\\.p5sys\\.jump\\.mac\\.viewer\\.", + "^com\\.teamviewer\\.TeamViewer$", + "^com\\.vmware\\.horizon$", + "^com\\.2X\\.Client\\.Mac$", + "^com\\.OpenText\\.Exceed-TurboX-Client$", + "^com\\.realvnc\\.vncviewer$", + "^com\\.citrix\\.receiver\\.icaviewer", + "^com\\.apple\\.Terminal$", + "^com\\.googlecode\\.iterm2$", + "^co\\.zeit\\.hyperterm$", + "^co\\.zeit\\.hyper$", + "^io\\.alacritty$", + "^org\\.alacritty$", + "^net\\.kovidgoyal\\.kitty$", + "^com\\.mitchellh\\.ghostty$", + "^org\\.vim\\.", + "^com\\.qvacua\\.VimR$", + "^com\\.vmware\\.fusion$", + "^com\\.vmware\\.horizon$", + "^com\\.vmware\\.view$", + "^com\\.parallels\\.desktop$", + "^com\\.parallels\\.vm$", + "^com\\.parallels\\.desktop\\.console$", + "^org\\.virtualbox\\.app\\.VirtualBoxVM$", + "^com\\.citrix\\.XenAppViewer$", + "^com\\.vmware\\.proxyApp\\.", + "^com\\.parallels\\.winapp\\.", + "^com\\.utmapp\\.UTM$", + "^org\\.x\\.X11$", + "^com\\.apple\\.x11$", + "^org\\.macosforge\\.xquartz\\.X11$", + "^org\\.macports\\.X11$", + "^com\\.sublimetext\\.", + "^com\\.microsoft\\.VSCode$", + "^com\\.todesktop\\.", + "^dev\\.warp\\.Warp" + ], + "type": "frontmost_application_unless" + } + ], + "from": { + "key_code": "h", + "modifiers": { + "mandatory": [ + "control" + ], + "optional": [ + "caps_lock", + "option" + ] + } + }, + "to": [ + { + "key_code": "delete_or_backspace" + } + ], + "type": "basic" + }, + { + "conditions": [ + { + "bundle_identifiers": [ + "^org\\.gnu\\.Emacs$", + "^org\\.gnu\\.AquamacsEmacs$", + "^org\\.gnu\\.Aquamacs$", + "^org\\.pqrs\\.unknownapp\\.conkeror$", + "^com\\.microsoft\\.rdc$", + "^com\\.microsoft\\.rdc\\.", + "^net\\.sf\\.cord$", + "^com\\.thinomenon\\.RemoteDesktopConnection$", + "^com\\.itap-mobile\\.qmote$", + "^com\\.nulana\\.remotixmac$", + "^com\\.p5sys\\.jump\\.mac\\.viewer$", + "^com\\.p5sys\\.jump\\.mac\\.viewer\\.", + "^com\\.teamviewer\\.TeamViewer$", + "^com\\.vmware\\.horizon$", + "^com\\.2X\\.Client\\.Mac$", + "^com\\.OpenText\\.Exceed-TurboX-Client$", + "^com\\.realvnc\\.vncviewer$", + "^com\\.citrix\\.receiver\\.icaviewer", + "^com\\.apple\\.Terminal$", + "^com\\.googlecode\\.iterm2$", + "^co\\.zeit\\.hyperterm$", + "^co\\.zeit\\.hyper$", + "^io\\.alacritty$", + "^org\\.alacritty$", + "^net\\.kovidgoyal\\.kitty$", + "^com\\.mitchellh\\.ghostty$", + "^org\\.vim\\.", + "^com\\.qvacua\\.VimR$", + "^com\\.vmware\\.fusion$", + "^com\\.vmware\\.horizon$", + "^com\\.vmware\\.view$", + "^com\\.parallels\\.desktop$", + "^com\\.parallels\\.vm$", + "^com\\.parallels\\.desktop\\.console$", + "^org\\.virtualbox\\.app\\.VirtualBoxVM$", + "^com\\.citrix\\.XenAppViewer$", + "^com\\.vmware\\.proxyApp\\.", + "^com\\.parallels\\.winapp\\.", + "^com\\.utmapp\\.UTM$", + "^org\\.x\\.X11$", + "^com\\.apple\\.x11$", + "^org\\.macosforge\\.xquartz\\.X11$", + "^org\\.macports\\.X11$", + "^com\\.sublimetext\\.", + "^com\\.microsoft\\.VSCode$", + "^com\\.todesktop\\.", + "^dev\\.warp\\.Warp" + ], + "type": "frontmost_application_unless" + } + ], + "from": { + "key_code": "i", + "modifiers": { + "mandatory": [ + "control" + ], + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "key_code": "tab" + } + ], + "type": "basic" + }, + { + "conditions": [ + { + "keyboard_types": [ + "ansi", + "iso" + ], + "type": "keyboard_type_if" + } + ], + "from": { + "key_code": "open_bracket", + "modifiers": { + "mandatory": [ + "control" + ], + "optional": [ + "caps_lock" + ] + } + }, + "to": [ + { + "key_code": "escape" + } + ], + "type": "basic" + }, + { + "conditions": [ + { + "keyboard_types": [ + "jis" + ], + "type": "keyboard_type_if" + } + ], + "from": { + "key_code": "close_bracket", + "modifiers": { + "mandatory": [ + "control" + ], + "optional": [ + "caps_lock" + ] + } + }, + "to": [ + { + "key_code": "escape" + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "m", + "modifiers": { + "mandatory": [ + "control" + ], + "optional": [ + "caps_lock", + "shift", + "option" + ] + } + }, + "to": [ + { + "key_code": "return_or_enter" + } + ], + "type": "basic" + }, + { + "conditions": [ + { + "bundle_identifiers": [ + "^org\\.gnu\\.Emacs$", + "^org\\.gnu\\.AquamacsEmacs$", + "^org\\.gnu\\.Aquamacs$", + "^org\\.pqrs\\.unknownapp\\.conkeror$", + "^com\\.microsoft\\.rdc$", + "^com\\.microsoft\\.rdc\\.", + "^net\\.sf\\.cord$", + "^com\\.thinomenon\\.RemoteDesktopConnection$", + "^com\\.itap-mobile\\.qmote$", + "^com\\.nulana\\.remotixmac$", + "^com\\.p5sys\\.jump\\.mac\\.viewer$", + "^com\\.p5sys\\.jump\\.mac\\.viewer\\.", + "^com\\.teamviewer\\.TeamViewer$", + "^com\\.vmware\\.horizon$", + "^com\\.2X\\.Client\\.Mac$", + "^com\\.OpenText\\.Exceed-TurboX-Client$", + "^com\\.realvnc\\.vncviewer$", + "^com\\.citrix\\.receiver\\.icaviewer", + "^com\\.apple\\.Terminal$", + "^com\\.googlecode\\.iterm2$", + "^co\\.zeit\\.hyperterm$", + "^co\\.zeit\\.hyper$", + "^io\\.alacritty$", + "^org\\.alacritty$", + "^net\\.kovidgoyal\\.kitty$", + "^com\\.mitchellh\\.ghostty$", + "^org\\.vim\\.", + "^com\\.qvacua\\.VimR$", + "^com\\.vmware\\.fusion$", + "^com\\.vmware\\.horizon$", + "^com\\.vmware\\.view$", + "^com\\.parallels\\.desktop$", + "^com\\.parallels\\.vm$", + "^com\\.parallels\\.desktop\\.console$", + "^org\\.virtualbox\\.app\\.VirtualBoxVM$", + "^com\\.citrix\\.XenAppViewer$", + "^com\\.vmware\\.proxyApp\\.", + "^com\\.parallels\\.winapp\\.", + "^com\\.utmapp\\.UTM$", + "^org\\.x\\.X11$", + "^com\\.apple\\.x11$", + "^org\\.macosforge\\.xquartz\\.X11$", + "^org\\.macports\\.X11$", + "^com\\.sublimetext\\.", + "^com\\.microsoft\\.VSCode$", + "^com\\.todesktop\\.", + "^dev\\.warp\\.Warp" + ], + "type": "frontmost_application_unless" + } + ], + "from": { + "key_code": "b", + "modifiers": { + "mandatory": [ + "control" + ], + "optional": [ + "caps_lock", + "shift", + "option" + ] + } + }, + "to": [ + { + "key_code": "left_arrow" + } + ], + "type": "basic" + }, + { + "conditions": [ + { + "bundle_identifiers": [ + "^org\\.gnu\\.Emacs$", + "^org\\.gnu\\.AquamacsEmacs$", + "^org\\.gnu\\.Aquamacs$", + "^org\\.pqrs\\.unknownapp\\.conkeror$", + "^com\\.microsoft\\.rdc$", + "^com\\.microsoft\\.rdc\\.", + "^net\\.sf\\.cord$", + "^com\\.thinomenon\\.RemoteDesktopConnection$", + "^com\\.itap-mobile\\.qmote$", + "^com\\.nulana\\.remotixmac$", + "^com\\.p5sys\\.jump\\.mac\\.viewer$", + "^com\\.p5sys\\.jump\\.mac\\.viewer\\.", + "^com\\.teamviewer\\.TeamViewer$", + "^com\\.vmware\\.horizon$", + "^com\\.2X\\.Client\\.Mac$", + "^com\\.OpenText\\.Exceed-TurboX-Client$", + "^com\\.realvnc\\.vncviewer$", + "^com\\.citrix\\.receiver\\.icaviewer", + "^com\\.apple\\.Terminal$", + "^com\\.googlecode\\.iterm2$", + "^co\\.zeit\\.hyperterm$", + "^co\\.zeit\\.hyper$", + "^io\\.alacritty$", + "^org\\.alacritty$", + "^net\\.kovidgoyal\\.kitty$", + "^com\\.mitchellh\\.ghostty$", + "^org\\.vim\\.", + "^com\\.qvacua\\.VimR$", + "^com\\.vmware\\.fusion$", + "^com\\.vmware\\.horizon$", + "^com\\.vmware\\.view$", + "^com\\.parallels\\.desktop$", + "^com\\.parallels\\.vm$", + "^com\\.parallels\\.desktop\\.console$", + "^org\\.virtualbox\\.app\\.VirtualBoxVM$", + "^com\\.citrix\\.XenAppViewer$", + "^com\\.vmware\\.proxyApp\\.", + "^com\\.parallels\\.winapp\\.", + "^com\\.utmapp\\.UTM$", + "^org\\.x\\.X11$", + "^com\\.apple\\.x11$", + "^org\\.macosforge\\.xquartz\\.X11$", + "^org\\.macports\\.X11$", + "^com\\.sublimetext\\.", + "^com\\.microsoft\\.VSCode$", + "^com\\.todesktop\\.", + "^dev\\.warp\\.Warp" + ], + "type": "frontmost_application_unless" + } + ], + "from": { + "key_code": "f", + "modifiers": { + "mandatory": [ + "control" + ], + "optional": [ + "caps_lock", + "shift", + "option" + ] + } + }, + "to": [ + { + "key_code": "right_arrow" + } + ], + "type": "basic" + }, + { + "conditions": [ + { + "bundle_identifiers": [ + "^org\\.gnu\\.Emacs$", + "^org\\.gnu\\.AquamacsEmacs$", + "^org\\.gnu\\.Aquamacs$", + "^org\\.pqrs\\.unknownapp\\.conkeror$", + "^com\\.microsoft\\.rdc$", + "^com\\.microsoft\\.rdc\\.", + "^net\\.sf\\.cord$", + "^com\\.thinomenon\\.RemoteDesktopConnection$", + "^com\\.itap-mobile\\.qmote$", + "^com\\.nulana\\.remotixmac$", + "^com\\.p5sys\\.jump\\.mac\\.viewer$", + "^com\\.p5sys\\.jump\\.mac\\.viewer\\.", + "^com\\.teamviewer\\.TeamViewer$", + "^com\\.vmware\\.horizon$", + "^com\\.2X\\.Client\\.Mac$", + "^com\\.OpenText\\.Exceed-TurboX-Client$", + "^com\\.realvnc\\.vncviewer$", + "^com\\.citrix\\.receiver\\.icaviewer", + "^com\\.apple\\.Terminal$", + "^com\\.googlecode\\.iterm2$", + "^co\\.zeit\\.hyperterm$", + "^co\\.zeit\\.hyper$", + "^io\\.alacritty$", + "^org\\.alacritty$", + "^net\\.kovidgoyal\\.kitty$", + "^com\\.mitchellh\\.ghostty$", + "^org\\.vim\\.", + "^com\\.qvacua\\.VimR$", + "^com\\.vmware\\.fusion$", + "^com\\.vmware\\.horizon$", + "^com\\.vmware\\.view$", + "^com\\.parallels\\.desktop$", + "^com\\.parallels\\.vm$", + "^com\\.parallels\\.desktop\\.console$", + "^org\\.virtualbox\\.app\\.VirtualBoxVM$", + "^com\\.citrix\\.XenAppViewer$", + "^com\\.vmware\\.proxyApp\\.", + "^com\\.parallels\\.winapp\\.", + "^com\\.utmapp\\.UTM$", + "^org\\.x\\.X11$", + "^com\\.apple\\.x11$", + "^org\\.macosforge\\.xquartz\\.X11$", + "^org\\.macports\\.X11$", + "^com\\.sublimetext\\.", + "^com\\.microsoft\\.VSCode$", + "^com\\.todesktop\\.", + "^dev\\.warp\\.Warp" + ], + "type": "frontmost_application_unless" + } + ], + "from": { + "key_code": "n", + "modifiers": { + "mandatory": [ + "control" + ], + "optional": [ + "caps_lock", + "shift", + "option" + ] + } + }, + "to": [ + { + "key_code": "down_arrow" + } + ], + "type": "basic" + }, + { + "conditions": [ + { + "bundle_identifiers": [ + "^org\\.gnu\\.Emacs$", + "^org\\.gnu\\.AquamacsEmacs$", + "^org\\.gnu\\.Aquamacs$", + "^org\\.pqrs\\.unknownapp\\.conkeror$", + "^com\\.microsoft\\.rdc$", + "^com\\.microsoft\\.rdc\\.", + "^net\\.sf\\.cord$", + "^com\\.thinomenon\\.RemoteDesktopConnection$", + "^com\\.itap-mobile\\.qmote$", + "^com\\.nulana\\.remotixmac$", + "^com\\.p5sys\\.jump\\.mac\\.viewer$", + "^com\\.p5sys\\.jump\\.mac\\.viewer\\.", + "^com\\.teamviewer\\.TeamViewer$", + "^com\\.vmware\\.horizon$", + "^com\\.2X\\.Client\\.Mac$", + "^com\\.OpenText\\.Exceed-TurboX-Client$", + "^com\\.realvnc\\.vncviewer$", + "^com\\.citrix\\.receiver\\.icaviewer", + "^com\\.apple\\.Terminal$", + "^com\\.googlecode\\.iterm2$", + "^co\\.zeit\\.hyperterm$", + "^co\\.zeit\\.hyper$", + "^io\\.alacritty$", + "^org\\.alacritty$", + "^net\\.kovidgoyal\\.kitty$", + "^com\\.mitchellh\\.ghostty$", + "^org\\.vim\\.", + "^com\\.qvacua\\.VimR$", + "^com\\.vmware\\.fusion$", + "^com\\.vmware\\.horizon$", + "^com\\.vmware\\.view$", + "^com\\.parallels\\.desktop$", + "^com\\.parallels\\.vm$", + "^com\\.parallels\\.desktop\\.console$", + "^org\\.virtualbox\\.app\\.VirtualBoxVM$", + "^com\\.citrix\\.XenAppViewer$", + "^com\\.vmware\\.proxyApp\\.", + "^com\\.parallels\\.winapp\\.", + "^com\\.utmapp\\.UTM$", + "^org\\.x\\.X11$", + "^com\\.apple\\.x11$", + "^org\\.macosforge\\.xquartz\\.X11$", + "^org\\.macports\\.X11$", + "^com\\.sublimetext\\.", + "^com\\.microsoft\\.VSCode$", + "^com\\.todesktop\\.", + "^dev\\.warp\\.Warp" + ], + "type": "frontmost_application_unless" + } + ], + "from": { + "key_code": "p", + "modifiers": { + "mandatory": [ + "control" + ], + "optional": [ + "caps_lock", + "shift", + "option" + ] + } + }, + "to": [ + { + "key_code": "up_arrow" + } + ], + "type": "basic" + }, + { + "conditions": [ + { + "bundle_identifiers": [ + "^org\\.gnu\\.Emacs$", + "^org\\.gnu\\.AquamacsEmacs$", + "^org\\.gnu\\.Aquamacs$", + "^org\\.pqrs\\.unknownapp\\.conkeror$", + "^com\\.microsoft\\.rdc$", + "^com\\.microsoft\\.rdc\\.", + "^net\\.sf\\.cord$", + "^com\\.thinomenon\\.RemoteDesktopConnection$", + "^com\\.itap-mobile\\.qmote$", + "^com\\.nulana\\.remotixmac$", + "^com\\.p5sys\\.jump\\.mac\\.viewer$", + "^com\\.p5sys\\.jump\\.mac\\.viewer\\.", + "^com\\.teamviewer\\.TeamViewer$", + "^com\\.vmware\\.horizon$", + "^com\\.2X\\.Client\\.Mac$", + "^com\\.OpenText\\.Exceed-TurboX-Client$", + "^com\\.realvnc\\.vncviewer$", + "^com\\.citrix\\.receiver\\.icaviewer", + "^com\\.apple\\.Terminal$", + "^com\\.googlecode\\.iterm2$", + "^co\\.zeit\\.hyperterm$", + "^co\\.zeit\\.hyper$", + "^io\\.alacritty$", + "^org\\.alacritty$", + "^net\\.kovidgoyal\\.kitty$", + "^com\\.mitchellh\\.ghostty$", + "^org\\.vim\\.", + "^com\\.qvacua\\.VimR$", + "^com\\.vmware\\.fusion$", + "^com\\.vmware\\.horizon$", + "^com\\.vmware\\.view$", + "^com\\.parallels\\.desktop$", + "^com\\.parallels\\.vm$", + "^com\\.parallels\\.desktop\\.console$", + "^org\\.virtualbox\\.app\\.VirtualBoxVM$", + "^com\\.citrix\\.XenAppViewer$", + "^com\\.vmware\\.proxyApp\\.", + "^com\\.parallels\\.winapp\\.", + "^com\\.utmapp\\.UTM$", + "^org\\.x\\.X11$", + "^com\\.apple\\.x11$", + "^org\\.macosforge\\.xquartz\\.X11$", + "^org\\.macports\\.X11$", + "^com\\.sublimetext\\.", + "^com\\.microsoft\\.VSCode$", + "^com\\.todesktop\\.", + "^dev\\.warp\\.Warp" + ], + "type": "frontmost_application_unless" + } + ], + "from": { + "key_code": "v", + "modifiers": { + "mandatory": [ + "control" + ], + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "key_code": "page_down" + } + ], + "type": "basic" + }, + { + "conditions": [ + { + "bundle_identifiers": [ + "^com\\.microsoft\\.Excel$", + "^com\\.microsoft\\.Powerpoint$", + "^com\\.microsoft\\.Word$" + ], + "type": "frontmost_application_if" + } + ], + "from": { + "key_code": "a", + "modifiers": { + "mandatory": [ + "control" + ], + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "key_code": "home" + } + ], + "type": "basic" + }, + { + "conditions": [ + { + "bundle_identifiers": [ + "^com\\.microsoft\\.Excel$", + "^com\\.microsoft\\.Powerpoint$", + "^com\\.microsoft\\.Word$" + ], + "type": "frontmost_application_if" + } + ], + "from": { + "key_code": "e", + "modifiers": { + "mandatory": [ + "control" + ], + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "key_code": "end" + } + ], + "type": "basic" + }, + { + "conditions": [ + { + "bundle_identifiers": [ + "^com\\.microsoft\\.Excel$", + "^com\\.microsoft\\.Powerpoint$", + "^com\\.microsoft\\.Word$" + ], + "type": "frontmost_application_if" + } + ], + "from": { + "key_code": "k", + "modifiers": { + "mandatory": [ + "control" + ], + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "key_code": "end", + "modifiers": [ + "left_shift" + ] + }, + { + "key_code": "delete_forward" + } + ], + "type": "basic" + }, + { + "conditions": [ + { + "bundle_identifiers": [ + "^org\\.eclipse\\.platform\\.ide$" + ], + "type": "frontmost_application_if" + } + ], + "from": { + "key_code": "a", + "modifiers": { + "mandatory": [ + "control" + ], + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "key_code": "left_arrow", + "modifiers": [ + "left_command" + ] + } + ], + "type": "basic" + }, + { + "conditions": [ + { + "bundle_identifiers": [ + "^org\\.eclipse\\.platform\\.ide$" + ], + "type": "frontmost_application_if" + } + ], + "from": { + "key_code": "e", + "modifiers": { + "mandatory": [ + "control" + ], + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "key_code": "right_arrow", + "modifiers": [ + "left_command" + ] + } + ], + "type": "basic" + } + ] +} diff --git a/karabiner/emacs-option-keys-rev-5-custom.json b/karabiner/emacs-option-keys-rev-5-custom.json index 6520435..10fe2aa 100644 --- a/karabiner/emacs-option-keys-rev-5-custom.json +++ b/karabiner/emacs-option-keys-rev-5-custom.json @@ -1,280 +1,309 @@ { - "description": "Emacs key bindings [option+keys] (rev 5) [custom]", - "manipulators": [ + "description": "Emacs key bindings [option+keys] (rev 5) [custom]", + "manipulators": [ + { + "conditions": [ { - "conditions": [ - { - "bundle_identifiers": [ - "^org\\.gnu\\.Emacs$", - "^org\\.gnu\\.AquamacsEmacs$", - "^org\\.gnu\\.Aquamacs$", - "^org\\.pqrs\\.unknownapp\\.conkeror$", - "^com\\.microsoft\\.rdc$", - "^com\\.microsoft\\.rdc\\.", - "^net\\.sf\\.cord$", - "^com\\.thinomenon\\.RemoteDesktopConnection$", - "^com\\.itap-mobile\\.qmote$", - "^com\\.nulana\\.remotixmac$", - "^com\\.p5sys\\.jump\\.mac\\.viewer$", - "^com\\.p5sys\\.jump\\.mac\\.viewer\\.", - "^com\\.teamviewer\\.TeamViewer$", - "^com\\.vmware\\.horizon$", - "^com\\.2X\\.Client\\.Mac$", - "^com\\.OpenText\\.Exceed-TurboX-Client$", - "^com\\.realvnc\\.vncviewer$", - "^com\\.citrix\\.receiver\\.icaviewer", - "^com\\.apple\\.Terminal$", - "^com\\.googlecode\\.iterm2$", - "^co\\.zeit\\.hyperterm$", - "^co\\.zeit\\.hyper$", - "^io\\.alacritty$", - "^org\\.alacritty$", - "^net\\.kovidgoyal\\.kitty$", - "^com\\.mitchellh\\.ghostty$", - "^org\\.vim\\.", - "^com\\.qvacua\\.VimR$", - "^com\\.vmware\\.fusion$", - "^com\\.vmware\\.horizon$", - "^com\\.vmware\\.view$", - "^com\\.parallels\\.desktop$", - "^com\\.parallels\\.vm$", - "^com\\.parallels\\.desktop\\.console$", - "^org\\.virtualbox\\.app\\.VirtualBoxVM$", - "^com\\.citrix\\.XenAppViewer$", - "^com\\.vmware\\.proxyApp\\.", - "^com\\.parallels\\.winapp\\.", - "^com\\.utmapp\\.UTM$", - "^org\\.x\\.X11$", - "^com\\.apple\\.x11$", - "^org\\.macosforge\\.xquartz\\.X11$", - "^org\\.macports\\.X11$", - "^com\\.sublimetext\\.", - "^com\\.microsoft\\.VSCode$", - "^com\\.todesktop\\.", - "^dev\\.warp\\.Warp$" - ], - "type": "frontmost_application_unless" - } - ], - "from": { - "key_code": "v", - "modifiers": { - "mandatory": ["option"], - "optional": ["caps_lock", "shift"] - } - }, - "to": [{ "key_code": "page_up" }], - "type": "basic" - }, - { - "conditions": [ - { - "bundle_identifiers": [ - "^org\\.gnu\\.Emacs$", - "^org\\.gnu\\.AquamacsEmacs$", - "^org\\.gnu\\.Aquamacs$", - "^org\\.pqrs\\.unknownapp\\.conkeror$", - "^com\\.microsoft\\.rdc$", - "^com\\.microsoft\\.rdc\\.", - "^net\\.sf\\.cord$", - "^com\\.thinomenon\\.RemoteDesktopConnection$", - "^com\\.itap-mobile\\.qmote$", - "^com\\.nulana\\.remotixmac$", - "^com\\.p5sys\\.jump\\.mac\\.viewer$", - "^com\\.p5sys\\.jump\\.mac\\.viewer\\.", - "^com\\.teamviewer\\.TeamViewer$", - "^com\\.vmware\\.horizon$", - "^com\\.2X\\.Client\\.Mac$", - "^com\\.OpenText\\.Exceed-TurboX-Client$", - "^com\\.realvnc\\.vncviewer$", - "^com\\.citrix\\.receiver\\.icaviewer", - "^com\\.apple\\.Terminal$", - "^com\\.googlecode\\.iterm2$", - "^co\\.zeit\\.hyperterm$", - "^co\\.zeit\\.hyper$", - "^io\\.alacritty$", - "^org\\.alacritty$", - "^net\\.kovidgoyal\\.kitty$", - "^com\\.mitchellh\\.ghostty$", - "^org\\.vim\\.", - "^com\\.qvacua\\.VimR$", - "^com\\.vmware\\.fusion$", - "^com\\.vmware\\.horizon$", - "^com\\.vmware\\.view$", - "^com\\.parallels\\.desktop$", - "^com\\.parallels\\.vm$", - "^com\\.parallels\\.desktop\\.console$", - "^org\\.virtualbox\\.app\\.VirtualBoxVM$", - "^com\\.citrix\\.XenAppViewer$", - "^com\\.vmware\\.proxyApp\\.", - "^com\\.parallels\\.winapp\\.", - "^com\\.utmapp\\.UTM$", - "^org\\.x\\.X11$", - "^com\\.apple\\.x11$", - "^org\\.macosforge\\.xquartz\\.X11$", - "^org\\.macports\\.X11$", - "^com\\.sublimetext\\.", - "^com\\.microsoft\\.VSCode$", - "^com\\.todesktop\\.", - "^dev\\.warp\\.Warp$" - ], - "type": "frontmost_application_unless" - } - ], - "from": { - "key_code": "b", - "modifiers": { - "mandatory": ["option"], - "optional": ["caps_lock", "shift"] - } - }, - "to": [ - { - "key_code": "left_arrow", - "modifiers": ["left_option"] - } - ], - "type": "basic" - }, - { - "conditions": [ - { - "bundle_identifiers": [ - "^org\\.gnu\\.Emacs$", - "^org\\.gnu\\.AquamacsEmacs$", - "^org\\.gnu\\.Aquamacs$", - "^org\\.pqrs\\.unknownapp\\.conkeror$", - "^com\\.microsoft\\.rdc$", - "^com\\.microsoft\\.rdc\\.", - "^net\\.sf\\.cord$", - "^com\\.thinomenon\\.RemoteDesktopConnection$", - "^com\\.itap-mobile\\.qmote$", - "^com\\.nulana\\.remotixmac$", - "^com\\.p5sys\\.jump\\.mac\\.viewer$", - "^com\\.p5sys\\.jump\\.mac\\.viewer\\.", - "^com\\.teamviewer\\.TeamViewer$", - "^com\\.vmware\\.horizon$", - "^com\\.2X\\.Client\\.Mac$", - "^com\\.OpenText\\.Exceed-TurboX-Client$", - "^com\\.realvnc\\.vncviewer$", - "^com\\.citrix\\.receiver\\.icaviewer", - "^com\\.apple\\.Terminal$", - "^com\\.googlecode\\.iterm2$", - "^co\\.zeit\\.hyperterm$", - "^co\\.zeit\\.hyper$", - "^io\\.alacritty$", - "^org\\.alacritty$", - "^net\\.kovidgoyal\\.kitty$", - "^com\\.mitchellh\\.ghostty$", - "^org\\.vim\\.", - "^com\\.qvacua\\.VimR$", - "^com\\.vmware\\.fusion$", - "^com\\.vmware\\.horizon$", - "^com\\.vmware\\.view$", - "^com\\.parallels\\.desktop$", - "^com\\.parallels\\.vm$", - "^com\\.parallels\\.desktop\\.console$", - "^org\\.virtualbox\\.app\\.VirtualBoxVM$", - "^com\\.citrix\\.XenAppViewer$", - "^com\\.vmware\\.proxyApp\\.", - "^com\\.parallels\\.winapp\\.", - "^com\\.utmapp\\.UTM$", - "^org\\.x\\.X11$", - "^com\\.apple\\.x11$", - "^org\\.macosforge\\.xquartz\\.X11$", - "^org\\.macports\\.X11$", - "^com\\.sublimetext\\.", - "^com\\.microsoft\\.VSCode$", - "^com\\.todesktop\\.", - "^dev\\.warp\\.Warp$" - ], - "type": "frontmost_application_unless" - } - ], - "from": { - "key_code": "f", - "modifiers": { - "mandatory": ["option"], - "optional": ["caps_lock", "shift"] - } - }, - "to": [ - { - "key_code": "right_arrow", - "modifiers": ["left_option"] - } - ], - "type": "basic" - }, - { - "conditions": [ - { - "bundle_identifiers": [ - "^org\\.gnu\\.Emacs$", - "^org\\.gnu\\.AquamacsEmacs$", - "^org\\.gnu\\.Aquamacs$", - "^org\\.pqrs\\.unknownapp\\.conkeror$", - "^com\\.microsoft\\.rdc$", - "^com\\.microsoft\\.rdc\\.", - "^net\\.sf\\.cord$", - "^com\\.thinomenon\\.RemoteDesktopConnection$", - "^com\\.itap-mobile\\.qmote$", - "^com\\.nulana\\.remotixmac$", - "^com\\.p5sys\\.jump\\.mac\\.viewer$", - "^com\\.p5sys\\.jump\\.mac\\.viewer\\.", - "^com\\.teamviewer\\.TeamViewer$", - "^com\\.vmware\\.horizon$", - "^com\\.2X\\.Client\\.Mac$", - "^com\\.OpenText\\.Exceed-TurboX-Client$", - "^com\\.realvnc\\.vncviewer$", - "^com\\.citrix\\.receiver\\.icaviewer", - "^com\\.apple\\.Terminal$", - "^com\\.googlecode\\.iterm2$", - "^co\\.zeit\\.hyperterm$", - "^co\\.zeit\\.hyper$", - "^io\\.alacritty$", - "^org\\.alacritty$", - "^net\\.kovidgoyal\\.kitty$", - "^com\\.mitchellh\\.ghostty$", - "^org\\.vim\\.", - "^com\\.qvacua\\.VimR$", - "^com\\.vmware\\.fusion$", - "^com\\.vmware\\.horizon$", - "^com\\.vmware\\.view$", - "^com\\.parallels\\.desktop$", - "^com\\.parallels\\.vm$", - "^com\\.parallels\\.desktop\\.console$", - "^org\\.virtualbox\\.app\\.VirtualBoxVM$", - "^com\\.citrix\\.XenAppViewer$", - "^com\\.vmware\\.proxyApp\\.", - "^com\\.parallels\\.winapp\\.", - "^com\\.utmapp\\.UTM$", - "^org\\.x\\.X11$", - "^com\\.apple\\.x11$", - "^org\\.macosforge\\.xquartz\\.X11$", - "^org\\.macports\\.X11$", - "^com\\.sublimetext\\.", - "^com\\.microsoft\\.VSCode$", - "^com\\.todesktop\\.", - "^dev\\.warp\\.Warp$" - ], - "type": "frontmost_application_unless" - } - ], - "from": { - "key_code": "d", - "modifiers": { - "mandatory": ["option"], - "optional": ["caps_lock"] - } - }, - "to": [ - { - "key_code": "delete_forward", - "modifiers": ["left_option"] - } - ], - "type": "basic" + "bundle_identifiers": [ + "^org\\.gnu\\.Emacs$", + "^org\\.gnu\\.AquamacsEmacs$", + "^org\\.gnu\\.Aquamacs$", + "^org\\.pqrs\\.unknownapp\\.conkeror$", + "^com\\.microsoft\\.rdc$", + "^com\\.microsoft\\.rdc\\.", + "^net\\.sf\\.cord$", + "^com\\.thinomenon\\.RemoteDesktopConnection$", + "^com\\.itap-mobile\\.qmote$", + "^com\\.nulana\\.remotixmac$", + "^com\\.p5sys\\.jump\\.mac\\.viewer$", + "^com\\.p5sys\\.jump\\.mac\\.viewer\\.", + "^com\\.teamviewer\\.TeamViewer$", + "^com\\.vmware\\.horizon$", + "^com\\.2X\\.Client\\.Mac$", + "^com\\.OpenText\\.Exceed-TurboX-Client$", + "^com\\.realvnc\\.vncviewer$", + "^com\\.citrix\\.receiver\\.icaviewer", + "^com\\.apple\\.Terminal$", + "^com\\.googlecode\\.iterm2$", + "^co\\.zeit\\.hyperterm$", + "^co\\.zeit\\.hyper$", + "^io\\.alacritty$", + "^org\\.alacritty$", + "^net\\.kovidgoyal\\.kitty$", + "^com\\.mitchellh\\.ghostty$", + "^org\\.vim\\.", + "^com\\.qvacua\\.VimR$", + "^com\\.vmware\\.fusion$", + "^com\\.vmware\\.horizon$", + "^com\\.vmware\\.view$", + "^com\\.parallels\\.desktop$", + "^com\\.parallels\\.vm$", + "^com\\.parallels\\.desktop\\.console$", + "^org\\.virtualbox\\.app\\.VirtualBoxVM$", + "^com\\.citrix\\.XenAppViewer$", + "^com\\.vmware\\.proxyApp\\.", + "^com\\.parallels\\.winapp\\.", + "^com\\.utmapp\\.UTM$", + "^org\\.x\\.X11$", + "^com\\.apple\\.x11$", + "^org\\.macosforge\\.xquartz\\.X11$", + "^org\\.macports\\.X11$", + "^com\\.sublimetext\\.", + "^com\\.microsoft\\.VSCode$", + "^com\\.todesktop\\.", + "^dev\\.warp\\.Warp" + ], + "type": "frontmost_application_unless" } - ] -} \ No newline at end of file + ], + "from": { + "key_code": "v", + "modifiers": { + "mandatory": [ + "option" + ], + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "key_code": "page_up" + } + ], + "type": "basic" + }, + { + "conditions": [ + { + "bundle_identifiers": [ + "^org\\.gnu\\.Emacs$", + "^org\\.gnu\\.AquamacsEmacs$", + "^org\\.gnu\\.Aquamacs$", + "^org\\.pqrs\\.unknownapp\\.conkeror$", + "^com\\.microsoft\\.rdc$", + "^com\\.microsoft\\.rdc\\.", + "^net\\.sf\\.cord$", + "^com\\.thinomenon\\.RemoteDesktopConnection$", + "^com\\.itap-mobile\\.qmote$", + "^com\\.nulana\\.remotixmac$", + "^com\\.p5sys\\.jump\\.mac\\.viewer$", + "^com\\.p5sys\\.jump\\.mac\\.viewer\\.", + "^com\\.teamviewer\\.TeamViewer$", + "^com\\.vmware\\.horizon$", + "^com\\.2X\\.Client\\.Mac$", + "^com\\.OpenText\\.Exceed-TurboX-Client$", + "^com\\.realvnc\\.vncviewer$", + "^com\\.citrix\\.receiver\\.icaviewer", + "^com\\.apple\\.Terminal$", + "^com\\.googlecode\\.iterm2$", + "^co\\.zeit\\.hyperterm$", + "^co\\.zeit\\.hyper$", + "^io\\.alacritty$", + "^org\\.alacritty$", + "^net\\.kovidgoyal\\.kitty$", + "^com\\.mitchellh\\.ghostty$", + "^org\\.vim\\.", + "^com\\.qvacua\\.VimR$", + "^com\\.vmware\\.fusion$", + "^com\\.vmware\\.horizon$", + "^com\\.vmware\\.view$", + "^com\\.parallels\\.desktop$", + "^com\\.parallels\\.vm$", + "^com\\.parallels\\.desktop\\.console$", + "^org\\.virtualbox\\.app\\.VirtualBoxVM$", + "^com\\.citrix\\.XenAppViewer$", + "^com\\.vmware\\.proxyApp\\.", + "^com\\.parallels\\.winapp\\.", + "^com\\.utmapp\\.UTM$", + "^org\\.x\\.X11$", + "^com\\.apple\\.x11$", + "^org\\.macosforge\\.xquartz\\.X11$", + "^org\\.macports\\.X11$", + "^com\\.sublimetext\\.", + "^com\\.microsoft\\.VSCode$", + "^com\\.todesktop\\.", + "^dev\\.warp\\.Warp" + ], + "type": "frontmost_application_unless" + } + ], + "from": { + "key_code": "b", + "modifiers": { + "mandatory": [ + "option" + ], + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "key_code": "left_arrow", + "modifiers": [ + "left_option" + ] + } + ], + "type": "basic" + }, + { + "conditions": [ + { + "bundle_identifiers": [ + "^org\\.gnu\\.Emacs$", + "^org\\.gnu\\.AquamacsEmacs$", + "^org\\.gnu\\.Aquamacs$", + "^org\\.pqrs\\.unknownapp\\.conkeror$", + "^com\\.microsoft\\.rdc$", + "^com\\.microsoft\\.rdc\\.", + "^net\\.sf\\.cord$", + "^com\\.thinomenon\\.RemoteDesktopConnection$", + "^com\\.itap-mobile\\.qmote$", + "^com\\.nulana\\.remotixmac$", + "^com\\.p5sys\\.jump\\.mac\\.viewer$", + "^com\\.p5sys\\.jump\\.mac\\.viewer\\.", + "^com\\.teamviewer\\.TeamViewer$", + "^com\\.vmware\\.horizon$", + "^com\\.2X\\.Client\\.Mac$", + "^com\\.OpenText\\.Exceed-TurboX-Client$", + "^com\\.realvnc\\.vncviewer$", + "^com\\.citrix\\.receiver\\.icaviewer", + "^com\\.apple\\.Terminal$", + "^com\\.googlecode\\.iterm2$", + "^co\\.zeit\\.hyperterm$", + "^co\\.zeit\\.hyper$", + "^io\\.alacritty$", + "^org\\.alacritty$", + "^net\\.kovidgoyal\\.kitty$", + "^com\\.mitchellh\\.ghostty$", + "^org\\.vim\\.", + "^com\\.qvacua\\.VimR$", + "^com\\.vmware\\.fusion$", + "^com\\.vmware\\.horizon$", + "^com\\.vmware\\.view$", + "^com\\.parallels\\.desktop$", + "^com\\.parallels\\.vm$", + "^com\\.parallels\\.desktop\\.console$", + "^org\\.virtualbox\\.app\\.VirtualBoxVM$", + "^com\\.citrix\\.XenAppViewer$", + "^com\\.vmware\\.proxyApp\\.", + "^com\\.parallels\\.winapp\\.", + "^com\\.utmapp\\.UTM$", + "^org\\.x\\.X11$", + "^com\\.apple\\.x11$", + "^org\\.macosforge\\.xquartz\\.X11$", + "^org\\.macports\\.X11$", + "^com\\.sublimetext\\.", + "^com\\.microsoft\\.VSCode$", + "^com\\.todesktop\\.", + "^dev\\.warp\\.Warp" + ], + "type": "frontmost_application_unless" + } + ], + "from": { + "key_code": "f", + "modifiers": { + "mandatory": [ + "option" + ], + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "key_code": "right_arrow", + "modifiers": [ + "left_option" + ] + } + ], + "type": "basic" + }, + { + "conditions": [ + { + "bundle_identifiers": [ + "^org\\.gnu\\.Emacs$", + "^org\\.gnu\\.AquamacsEmacs$", + "^org\\.gnu\\.Aquamacs$", + "^org\\.pqrs\\.unknownapp\\.conkeror$", + "^com\\.microsoft\\.rdc$", + "^com\\.microsoft\\.rdc\\.", + "^net\\.sf\\.cord$", + "^com\\.thinomenon\\.RemoteDesktopConnection$", + "^com\\.itap-mobile\\.qmote$", + "^com\\.nulana\\.remotixmac$", + "^com\\.p5sys\\.jump\\.mac\\.viewer$", + "^com\\.p5sys\\.jump\\.mac\\.viewer\\.", + "^com\\.teamviewer\\.TeamViewer$", + "^com\\.vmware\\.horizon$", + "^com\\.2X\\.Client\\.Mac$", + "^com\\.OpenText\\.Exceed-TurboX-Client$", + "^com\\.realvnc\\.vncviewer$", + "^com\\.citrix\\.receiver\\.icaviewer", + "^com\\.apple\\.Terminal$", + "^com\\.googlecode\\.iterm2$", + "^co\\.zeit\\.hyperterm$", + "^co\\.zeit\\.hyper$", + "^io\\.alacritty$", + "^org\\.alacritty$", + "^net\\.kovidgoyal\\.kitty$", + "^com\\.mitchellh\\.ghostty$", + "^org\\.vim\\.", + "^com\\.qvacua\\.VimR$", + "^com\\.vmware\\.fusion$", + "^com\\.vmware\\.horizon$", + "^com\\.vmware\\.view$", + "^com\\.parallels\\.desktop$", + "^com\\.parallels\\.vm$", + "^com\\.parallels\\.desktop\\.console$", + "^org\\.virtualbox\\.app\\.VirtualBoxVM$", + "^com\\.citrix\\.XenAppViewer$", + "^com\\.vmware\\.proxyApp\\.", + "^com\\.parallels\\.winapp\\.", + "^com\\.utmapp\\.UTM$", + "^org\\.x\\.X11$", + "^com\\.apple\\.x11$", + "^org\\.macosforge\\.xquartz\\.X11$", + "^org\\.macports\\.X11$", + "^com\\.sublimetext\\.", + "^com\\.microsoft\\.VSCode$", + "^com\\.todesktop\\.", + "^dev\\.warp\\.Warp" + ], + "type": "frontmost_application_unless" + } + ], + "from": { + "key_code": "d", + "modifiers": { + "mandatory": [ + "option" + ], + "optional": [ + "caps_lock" + ] + } + }, + "to": [ + { + "key_code": "delete_forward", + "modifiers": [ + "left_option" + ] + } + ], + "type": "basic" + } + ] +} diff --git a/zsh/golang.zsh b/zsh/golang.zsh index 2c5ce28..ebb65cc 100755 --- a/zsh/golang.zsh +++ b/zsh/golang.zsh @@ -7,13 +7,31 @@ # ============================================================================== list_go_global_packages() { - for bin in $(ls -1 ~/.go/bin); do - go version -m ~/.go/bin/$bin | grep '^[[:space:]]path' | awk '{ print $2 }' + local bindir="${GOBIN:-$(go env GOBIN)}" + if [ -z "$bindir" ]; then + echo "GOBIN is not set" + return 1 + fi + + for cmd in $(ls -1 "${GOBIN}"); do + go version -m "${GOBIN}/${cmd}" | grep '^[[:space:]]path' | awk '{ print $2 }' done } install_go_global_packages() { local packages=( + github.com/fatih/gomodifytags@latest + github.com/go-delve/delve/cmd/dlv@latest + github.com/josharian/impl@latest + github.com/rakyll/hey@latest + github.com/rogpeppe/godef@latest + go.uber.org/mock/mockgen@latest + golang.org/x/tools/cmd/godoc@latest + golang.org/x/tools/cmd/goimports@latest + golang.org/x/tools/gopls@latest + golang.org/x/vuln/cmd/govulncheck@latest + google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest + google.golang.org/protobuf/cmd/protoc-gen-go@latest ) for package in "${packages[@]}"; do diff --git a/zsh/kubernetes.zsh b/zsh/kubernetes.zsh index 1f20343..2a54612 100644 --- a/zsh/kubernetes.zsh +++ b/zsh/kubernetes.zsh @@ -30,14 +30,35 @@ if command-exists kubectl; then fi fi +# Download completion scripts for kubectx and kubens from their git repo at +# their respective versions. This is required as neither command has an option +# to output their completion scripts, unlike most tools. _setup-kubectx-completion() { local cmd="$1" - local dir="$HOME/.local/share/mise/installs/kubectx/latest/completion" - local src="${dir}/_${cmd}.zsh" + local version + local src_url + local tmpfile - if [[ ! -f "$src" ]]; then return; fi + # If the command already has completions, don't do anything. + if whence -w "_${cmd}" > /dev/null; then return; fi - setup-completions "$cmd" "$src" cat "$src" + tmpfile="$(mktemp -d)/_${cmd}.zsh" + version="$(printf '%s' "$(command "$cmd" --version 2> /dev/null)")" + version="${version#v}" + src_url="https://github.com/ahmetb/kubectx/raw/refs/tags/v${version}/completion/_${cmd}.zsh" + + echo "Completion script for ${cmd} (v#{version}) not found. Download and install?" + echo + echo " Download from: ${src_url}" + echo " Save to: ${tmpfile}" + echo + read -q "REPLY?Continue? [y/N]:" || return + echo + echo + + curl -L "$src_url" -o "${tmpfile}" && + echo && + setup-completions "$cmd" "$(command-path "$cmd")" cat "$tmpfile" } if command-exists kubectx; then diff --git a/zsh/ruby.zsh b/zsh/ruby.zsh index cb2ac72..ff13b65 100755 --- a/zsh/ruby.zsh +++ b/zsh/ruby.zsh @@ -67,6 +67,5 @@ install_ruby_global_packages() { yard ) - gem install --no-document rbenv-rehash gem install --no-document "${packages[@]}" }