From 977988600913595000b2f057ea370509a6ccb979 Mon Sep 17 00:00:00 2001 From: Yuki Iwanaga Date: Mon, 31 Dec 2018 00:46:04 +0900 Subject: [PATCH] Add things --- README.md | 3 ++- keyboard/Handlers/AppSwitchHandler.swift | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 96acad4..502b1e4 100644 --- a/README.md +++ b/README.md @@ -99,5 +99,6 @@ For Vim, leave insert mode with EISUU in order to avoid IME from capturing key s | Key | App | Bundle ID | URL | |:---|:---|:---|:---| | `;+F` | Finder | `com.apple.finder` | N/A | -| `;+T` | iTerm 2 | `com.googlecode.iterm2` | https://www.iterm2.com | +| `;+M` | iTerm 2 | `com.googlecode.iterm2` | https://www.iterm2.com | +| `;+T` | Things | `com.culturedcode.ThingsMac` | https://culturedcode.com/things | | `;+B` | Bear | `net.shinyfrog.bear` | https://bear.app | diff --git a/keyboard/Handlers/AppSwitchHandler.swift b/keyboard/Handlers/AppSwitchHandler.swift index fee9c43..3595711 100644 --- a/keyboard/Handlers/AppSwitchHandler.swift +++ b/keyboard/Handlers/AppSwitchHandler.swift @@ -2,8 +2,9 @@ import Cocoa // Swtich between apps: // -// ;+T Terminal // ;+F Finder +// ;+M Terminal +// ;+T Things // ;+B Bear // final class AppSwitchHandler: Handler { @@ -29,8 +30,10 @@ final class AppSwitchHandler: Handler { switch key { case .f: showOrHideApplication(byBundleIdentifier: "com.apple.finder") - case .t: + case .m: showOrHideApplication(byBundleIdentifier: "com.googlecode.iterm2") + case .t: + showOrHideApplication(byBundleIdentifier: "com.culturedcode.ThingsMac") case .b: showOrHideApplication(byBundleIdentifier: "net.shinyfrog.bear") default: