![]() Using the mouse is bad for navigating windows, it is worse for managing their layout. Similarly, Cmd+` and Cmd+Shift+` switch the current window to the next (or previous) window of the current application Keyboard-based window layout management So, first things first: Cmd+Tab and Cmd+Shift+Tab switches the current window to the next (or previous) application. In order to use the keyboard for window management we first need to be able to navigate with the keyboard Navigating windows with the mouse is inefficient (it takes much longer than with the keyboard) and also somewhat ineffective (it is much less precise than with the keyboard). Stop using the mouse - Start using your keyboard (for navigation) Hammerspoon is a generic tool, but the functionality I use by far the most is window layout management. Over the years, it has completely changed how I do a couple small but important tasks. Glancing at your code above, when switcher_app_vis gets set to a new value, the previous switcher should be collected (maybe not immediately, but soon thereafter) and if it isn't, it suggests that there may be something within the module code itself which is also capturing a reference to the switcher object so it can't be collected.Hammerspoon boasts two things: a truly epic project name and a lua scripting environment that hooks into extensions that allow you to control system functionality in macOS. I've put up a question ( #2730) about going ahead and making canvas auto-collect that should help at least some with this issue, but its going to be a bit before I can make the time to address it, assuming no objections arise - it would be a "breaking" change from the previous expected behavior of the canvas/drawing module. And I'm not sure who the original author was, so unless they are still active in the community and see this, I can't ping them directly for input. You're correct that this hasn't been touched in a while, so it may be updatable in a number of ways that would be of benefit. Being able to see the window previews was a super useful feature! If people can point me in the right direction, perhaps I can submit a PR myself, although I'm a novice with Lua and C. But figured I'd share my findings for knowledge-sharing, in case anyone is working on it or decides to revive it at some later point.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |