Terminal Window Manager for OS X
github.com
github.com
There are a lot of hammerspoon configurations around that will give you some cool ideas. Mine is below [2].
1. http://www.hammerspoon.org/
2. https://github.com/STRML/init/blob/master/hammerspoon/init.l...
Here's my configuration file.
This way if you press tab on it's own it still behaves as the tab key, but combined with another key it acts as Hyper, or mash.
I also love the "Shift to Shift (+ When you type Shift only, send the appropriate parenthesis)" option, and have my caps-lock mapped to control, with karabinier doing: Control_L to Control_L (+ When you type Control_L only, send Escape)
The entire cmd+shift+alt+ctrl keymap space is open, except with the (surprising) inclusion of cmd+shift+alt+ctrl+., which does a sysdiagnose. So I added a warning about that.
It has a bit more modules and whatnot and emphasizes ease of use more than Mjolnir. It comes pre-packaged so that you don't need to bother with Luarocks and finding each and every package that you want. It is also under active delevopment. .Steven Degutis, the Mjolnir creator and maintainer, has said that he won't be doing anything other than merging necessary pull requests.
So really, for what you're using it for, probably not much. It's almost a matter of preference.
The most powerful thing about Hammerspoon seems that you build your .hammerspoon/init.lua with time, and as things tend to frustrate you more often, you put time into looking up how to optimise things by writing lua, oh and there's a console/repl, yay! A bit like my .vimrc really.
Btw, I use a Hyper-key that is mapped using karabiner [3], here's my private.xml [4]
1. https://github.com/mattr-/slate
2. http://www.controlplaneapp.com/
3. https://pqrs.org/osx/karabiner/
4. http://pastebin.com/raw.php?i=1EbhTEjd
A lot of this was inspired by Steve Losh, who does awesome stuff! checkout http://stevelosh.com/blog/2012/10/a-modern-space-cadet/ if you like this sort of stuff!
I realize this is a bit of a moot point since the user can always change the alias, but it's generally better UX if the default is something most people will use.
Though what I really want is native xmonad in OSX.
So just to be clear, it's not intended to be a replacement for Amethyst, Divvy, or any other universal manager, but just a quick solutions just for the terminal, because you can control it with regular commands!
I hope you like it!
Unfortunately, what I want is really the job of a window manager, or should be done at the OS level. On the Mac, there is no true user-serviceable window manager that can be replaced.
I'm still surprised Apple hasn't just incorporated this into OSX.
Works great for my use.
The interesting part of this solution is realising that for terminals, using the mouse nor long complicated keyboard shortcuts are needed. Terminals have text input, you can type where the window is supposed to go. There commands can be memorable, and there is no risk of collision with other global hotkeys.
There are a number of tools that provide some subset of the functionality, but they always lack some critical piece (oftentimes FFM, multi-monitor support, or window containers).
I've dedicated Mod4 to interacting with my window manager for over a decade and it's sensible. Mod1 and control (and, if absolutely necessary, shift) are plenty for keyboard shortcuts for apps.
But honestly I switched to Hammerspoon and with some searching/learning lua/copy-pasting have the same functionality, and it's even more extendable. If you can describe what you want to do with the windows/current app/whatever, you can probably write it in lua.
I stick with bettertouchtool combined with some keyboard shortcuts though.
iTerm2 handles split panes quite nice as well.
Still, a very interesting little bit of scripting to solve a common, age-old problem.
What is the bug you're talking about?
I just hit enter and it soldiered on and then I manually changed the aliases in my .bashrc file ..
Had the same problem as those guys.
EDIT: (for those reading) .. the issue has now been fixed. Kudo's!
(A few years ago, before I started using OS X, I wrote something similar for Windows, for use with AutoHotKey: https://github.com/tom-seddon/align_window2)
I didn't even need to program or customize any hot-keys since everything I want to do (full screen, half screen, quarter screen) is already built into a hotkey.
(Less cheeky response: no two platforms handle this stuff in the same way. You'd be able to share such a small amount of code between platforms that you'd be better off just duplicating that code rather than trying to create some kind of abstraction. This is true even if you decided to start out by not using something entirely OS X-specific such as AppleScript.)