The downside to this setup? It overrides some shortcuts set up by applications, but I can work around that or remap them in the application itself. There are enough reasons why I consider a mouse to be even worse for switching applications.įor me the main reason is RSI complaints. Example of OSX Spotlight converting currency What about the Dock/a mouse? I pretty much only use spotlight as shortcut for a calculator and currency converter. I first have to open spotlight with ⌘ + Space, then type a part of the application name, but it might conflict with something else, so I have to type more and. It doesn't help with quickly switching between applications. ![]() I realized I never really use OSX's Spotlight to look for anything. The full list of shortcuts can be found in my dotfiles as well. This setup saves me time switching between applications every day, but more importantly, I can continue concentrating on whatever I'm working on. You can see my configuration in my dotfiles. This means I'm now in the process of moving all my configuration over from Quicksilver and Spectacle to Hammerspoon. I actually like Hammerspoon more since I can do a lot more than defining application shortcuts. There's no UI in Hammerspoon like in Quicksilver and Spectacle, instead you write all your config in Lua. I also use it for window management now, something which previously I used the awesome Spectacle.app for. However, this tool can do a lot more than just shortcuts. With Hammerspoon you can set up the same shortcuts as Quicksilver. I wasn't entirely happy with it so I gave a Mjolnir fork, Hammerspoon, another go recently. It has a very nice UI that allows you to set up almost any kind of shortcut combination to open an application of choice. Luckily I found an alternative in Quicksilver's triggers. I loved this feature and when switching to OSX years ago it was one of the things I really missed. Windows + 1-9 opened the application on the 1-9th position on the task bar. In Windows 7 (maybe even in Vista) they added support for numbered shortcuts for applications on the task bar. It started with Windows + E to open Explorer and Windows + R to open the "Run" window. It was actually Microsoft Windows that got me used to these kinds of shortcuts. My development environment usually includes having iTerm, MacVim, iA Writer Pro, Photoshop and Chrome open at the same time. There's not a very high chance I need to switch back to the previous application all the time. The order of the Alt + Tab list is based on their last use. What did I want to do in iTerm again? Example of Command + Tab UI on OSXĮspecially when I'm working with more than two applications Alt + Tab gets in the way. Oops! Pressed Tab three times, better go round the entire list or Shift + Tab to go back. I'm editing a file and want to commit a change.Īlt + Tab quickly to iTerm.app. Instead I use shortcuts to open applications: It takes me out of what I'm doing and makes me think about where in the list the application is that I want to open. One of my favorite ways of navigating OSX nowadays came from disliking Alt + Tab-bing to switch applications. :subscribe(hs. I spend a lot of time working on my computer, as developers do, I look for ways to improve my workflow. Subscribe to when your Google Chrome window is focused and unfocused ![]() Local GoogleChromeWF = hs.("Google Chrome") Initialize a Google Chrome window filter Local yourHotkey = hs.hotkey.new(, "0", function() In other words, for what you're trying to achieve, it's recommended you use the hs.window.filter API to enable the hotkey binding when entering the application, and disable it when leaving the application, i.e. ![]() If you're wanting the key combo to do something for most applications, but not for a few specific ones, you're better off using a window filter or application watcher and enabling/disabling the hotkey(s) when the active application changes. I'll point to what is mentioned in a somewhat related GitHub issue: The hs.eventtap API does, but using it would involve watching for every keyDown event. The hs.hotkey API doesn't provide functionality to be able to propagate the captured keydown event.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |