Gus Mueller FlyOpts InputManager
I just came across a truly amazingly sweet little thing.
How I found it
- Of grasshoppers and O_S
- Menu Accelerator
- FlyOpts InputManager
What is it?
To quote the author:
A warning: input managers are bad…
This bit of code [is] probably only useful to developers … it’s not like a product or anything. Think of it as sample code.
* Edit in BBEdit from any NSTextView
* Menu Accelerator- Marrying Search Kit and NSMenuItem in some sort of unholy union
* Execute as Lua in any NSTextView
He’s got a slick video of the Menu Accelerator and another one activating a shell script
To get it to work with TextMate …
- Download the binary
- Download the source code
- Unzip
- Open the
flyopts.xcodeproj
Xcode project inflyopts_src/
- Vainly attempt to compile as is (just to test)
- Fail
- -Curse- Grin and bare it
- Run
ranlib
on the filesflyopts_src/src/lua/liblua.a flyopts_src/src/lua/liblualib.a
from the terminal - Change the string
"com.barebones.bbedit"
to"com.macromates.textmate"
on line 64 of the fileflyopts_src/src/bbedit/FOODBEditor.m
- Build
- Succeed!
- Pat yourself on the back,
you are now a l33t haxx0ryou’re almost done!
- Copy your fresh new bundle
flyopts_src/build/Development/FlyOpts.bundle
into theFlyOpts/
folder (from step 3), replace the existing bundle - Copy the
FlyOpts/
folder into your~/Library/InputManagers/
folder - Done
- Pop open TextEdit to test it all out.
Set a shortcut
- Add the line
"^j" = "flyoptsODBEdit:";
to your~/Library/KeyBindings/DefaultKeyBinding.dict
file~/Library/KeyBindings/DefaultKeyBinding.dict - If this file doesn’t exist I’m sure you’ll figure it out ;)
Other InputManager Sweetness
The Incremental-Search Plugin for Mac OS X
An InputManager that adds emacs-style Incremental Search to any app using NSTextView