Jon AtkinsonI'm a web developer and system administrator

FileMerge keyboard shortcuts

Posted on 18th September 2008. Tagged as tips, osx, mac, filemerge

I really like Apple's FileMerge. I like it because it is simple, and I like it because the interface is apparently unchanged since NeXTSTEP. It feels like using a well-worn hand tool of some kind.

I don't like the fact that it requires use of the mouse for all but the most simple of tasks (the only merge-window shortcuts are the left and right cursor keys, for 'merge left' and 'merge right'), and there the help pages don't list any of the keyboard shortcuts. When you have a thousand line file to merge, and some of the changes require 'choose both' or 'choose neither', using the mouse becomes rather tiresome rather quickly.

Fortunately, you can edit FileMerge's interface definition file quite easily to add some extra keyboard shortcuts, or modify the existing ones. Provided below is my .nib file for FileMerge, which defines the following shortcuts:

  • Left - Choose left
  • Right - Choose right
  • Ctrl-Left - Choose both, left first
  • Ctrl-Right - Choose both, right first
  • Space - Choose Neither

You can download my interface definition, unzip, then drop the diffview.nib file into

/Developer/Applications/Utilities/FileMerge/Contents/Resources/English.lproj/

Restart FileMerge and you'll have working keyboard shortcuts. Much faster!

blog comments powered by Disqus

Twitter

About Me

Picture of Jon Atkinson

Jon Atkinson is a web developer, sysadmin and occasional business guy. He works in the north west of England.

Jon can be contacted at , or on freenode as JonA. Also available: twitter, LinkedIn and Github.

84labs logo

I own and run 84labs, a company which provides bespoke web application development for businesses and startups.

If you're interested in working with me, take a look, then contact me via 84labs.

Testled logo

I'm one of the founders of Testled.com, a web service to provide simple remote usability testing of web sites and desktop applications

Testled.com is currently in private beta, but you can still signup for an invite.