The Spacehammer project explores these ideas to allow you to take your keyboard-driven workflow to the next level. To trigger an action, user is required to press a mnemonically recognizable combination of keys (that usually starts with SPACE key), e.g., SPC w m is used to maximize the current window/buffer. In Spacemacs there is a single primary “modifier” key SPACE. The Spacemacs project is an excellent example of where that was done. Fortunately, the basic idea of modality can be expanded further. However, the “one-dimensional” approach utilized in vanilla Vim, where a single modal (to switch from Normal to Edit to Select mode) is used, also has limitations. There’s so much you can do with the h/j/k/l keys alone. You start adding keyboard shortcuts for various actions, and soon you will be blocked by conflicting shortcuts.Ĭommand composability (first explored in Vi and later expanded in its successor Vim), although does require some initial learning and getting used to, allows you to expand your keyboard-oriented workflow with a minimal effort to memorize keys. And obviously, that approach is not very scalable. However, the most popular strategy in that space is to use a multitude of keyboard shortcuts. Keyboard-oriented workflows are often far more efficient and less frustrating than similar mouse-driven techniques. I kind of find it amazing that such a horribly inconsistent user interface control has persisted for 15+ years.īut yet - Magnet (much like Spectacle before it) does exactly what I want.Hammerspoon config inspired by Spacemacs Rationale I've been a dedicated OS X user since 10.3 - and, despite spending 15-20 minutes at a stretch every year or so (such as tonight) - I've never really understood what the green button is supposed to do. It seems like the Option+Click on the streetlight is kind of like a toggle of the last two previous sizes, but not always - sometimes it stretches to the top, sometimes it doesn't do anything. Clicked again, this time returned to the same narrower size as one step previous. Clicked Again - Window stretched up to top, but didn't change width. I just maximized my screen with Magnet (cause window to stretch out both horizontally and vertically), then I option-clicked on the Green Streetlight - Nothing happened. The weird thing is the behavior doesn't seem to be predictable. People who want to build tools around their existing tools will probably prefer Mjolnir. People who want that approach will prefer Hammerspoon. They're not wrong, it's not a matter of right or wrong. The authors behind Hammerspoon prefer the batteries-included approach. It also doesn't allow for any competition between features in the same domain. Every feature anyone could ever want needs to be bundled into it, and even though this is more convenient at first, it ends up bloated. These are the kinds of things that this separation was meant to allow and encourage.īut when it's a batteries-included app, every single aspect of it needs to be built into the app. Or a plugin that centralizes plugin settings into a unified single GUI window. Imagine having a GUI app that manages third party modules for you, installing and loading them at a single click. When they're separate projects, there's a lot of potential for really interesting tools to be built around them, between them, or bridging them together. They forked it because of a difference of opinion: I believe that separation of the core app and the modules into separate projects is ultimately better, and they don't. In fact, the point in that blog post was that I enjoy making things like Mjolnir, and specifically prefer it over building apps like, well, anything you'd see on the front page of the Mac App Store any day of the week. Nope, that has nothing to do with what I said in that blog post.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |