A Three Finger Salute to Git 15 comments

posted Tuesday, March 11, 2008 by topfunky

David Letterman often asks: Is this anything? And now I ask you.

  • Newer MacBook Pros and MacBook Airs can detect trackpad gestures (three finger swipe up, down, left, right).
  • A new preference pane called MultiClutch makes it easy to call key commands when gestures occur.
  • ThisService turns command line scripts into services with key commands.

The end result?

  • Swipe up to git push
  • Swipe down to git pull
  • Swipe left to see git status
  • Others are also possible!

Easy setup

Download my pre-packaged services and drop in Library/Services (local or systemwide…your choice).

Download MultiClutch and set commands for multitouch gestures that call the services.

You can try it at home!

Use ThisService to make a service that calls any shell script or even a Ruby script (start autotest, run rake, etc.).

I used a simple shell script that echoes a command to the Terminal.

#!/bin/sh
echo "git pull"

Product placement

See the PeepCode Git Screencast to learn how to use Git.

15 comments

Leave a response

  • I think you have far to much time on your hands ;)

  • Genius!

  • This is slightly insane Geoff – but kinda cool.

  • Gravatar icon JJ

    Wow that is amazing! We could get a lot from MacBook Air after all. I have been reluctant to using it ever since I heard it does not have a disk drive.

  • Geoff you genius.

  • Gravatar icon sr

    http://en.wikipedia.org/wiki/Three-finger_salute_(Serbian)#Connotations

  • Gravatar icon topfunky

    @sr I was referring to this three finger salute:

    http://en.wikipedia.org/wiki/Control-Alt-Delete

    It’s also the Boy Scout sign:

    http://en.wikipedia.org/wiki/Three-finger_salute

  • This is absolutely wonderful. And I’m upgrading my MB to a new MBP in about a month, so w00t! :)

    Please, keep having too much time in your hands, as Vincent says

  • Gravatar icon doug Tangren

    Brilliant use of the touch pad! One more reason to love working on a mac.

    p.s. @larry I think you are commenting on the wrong post.

    Geoff you are a fucking genius! Keep up the awesome pod and screen casting. You are an inspiration to us all.

  • Gravatar icon nehemiah

    wheres the code?

  • Awesome! But makes me want a new MacBook. :(

  • love the ‘is this anything’ reference! I was just thinking today about writing mac software to use gestures, great to know there’s an easy way to just add them to other folks’ wares.

  • woahh verrrry nice.. so I guess I can’t use this with my ages old macbook :( need a new one

  • Gravatar icon vbn

    sj

  • Now I just need a smackbook trigger to cycle through my branches.

    Can I get a reset—hard HEAD if I punch the screen?

Your Comment

Nuby on Rails

Geoffrey Grosenbach / Ruby / Code / Graphics / Design / Rails / Merb / Javascript / CSS

Manufactured with

Subscribe

Subscribe (RSS)