Skip to content

Commit

Permalink
Add things
Browse files Browse the repository at this point in the history
  • Loading branch information
creasty committed Dec 30, 2018
1 parent 87fe294 commit 9779886
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
7 changes: 5 additions & 2 deletions keyboard/Handlers/AppSwitchHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import Cocoa

// Swtich between apps:
//
// ;+T Terminal
// ;+F Finder
// ;+M Terminal
// ;+T Things
// ;+B Bear
//
final class AppSwitchHandler: Handler {
Expand All @@ -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:
Expand Down

0 comments on commit 9779886

Please sign in to comment.