An Introduction to Scripting Tmux Key Bindings

Tmux is a powerful terminal multiplexer, and its built-in support for scripting allows you to create new features according to your own workflow.

I spend most of my day in Tmux, at the command line, grepping through codebases and editing files with Vim. I copied and pasted or re-typed file names for a long time before I realized how irritated I was that I couldn’t merely click on a file name and immediately open that file to the given line.

An IDE would have that functionality, and being firmly in the camp of command line as IDE, I set out to right this wrong.

Read more on An Introduction to Scripting Tmux Key Bindings…

Less Perplexing Terminal Multiplexing with tmux

Tmux has been getting a lot of attention lately. As George Nachman works toward a deeper integration of iTerm2 with tmux, more people are becoming aware of the ‘other’ terminal multiplexer. Around the office, people have been asking how I use tmux. While I’m also an avid iTerm2 user, I’m not sure if the new ‘deep integration’ will be worth the additional complexity. Tmux is useful enough on its own.

Read more on Less Perplexing Terminal Multiplexing with tmux…

Objective-C KeyPath Bindings

One of the nicer features surrounding Objective-C are Key Value Observation (KVO) and Key Value Coding. KVO provides a mechanism to observe changes in a property on an object. Key Value Coding is an informal protocol—which NSObject implements—that gives you the ability to query an object and its properties.

There are times when an object wants to observe changes in a property of another object and mirror those changes in a property of its own. Unfortunately, implementing this behavior requires a verbose set of KVO code that has to be duplicated between objects that want to have this behavior.

Read more on Objective-C KeyPath Bindings…

Vi Editing Mode for Bash

Ever find yourself at the Bash prompt, typing out a very long series of arguments or parameters, only to hideously misspell something at the beginning on the line?

If you’re handy with the emacs editor, you already know the answer. You can use the emacs key bindings to go back and efficiently edit your command line. You don’t need to retype it, or tediously use the arrow keys to go back character-by-character.

However, what if you’re not handy with emacs bindings, but vi bindings? What then?

Read more on Vi Editing Mode for Bash…