Skip to content
Execute JavaScript expressions with a single keystroke inside TextMate
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Execute JavaScript in TextMate

This is a TextMate bundle for the excellent Lyndon.

  1. Get MacRuby,
  2. Get Lyndon. Do so with rip:

    rip install git://

    Or rubygems:

    [sudo] macgem install lyndon
  3. Install Lyndon.tmbundle:

    git clone git:// \
      "~/Library/Application Support/TextMate/Bundles"
  4. Maximum awesome.

Bundle commands

Shortcuts are the same as equivalents in Ruby documents:

  • ⌘R -- run JavaScript document
  • ⌃⇧E -- run line / selection as JavaScript

(Make sure you have your textmate document set to "JavaScript".)

Try it on

Here's a sample document:

function camelize(string){
  return string.replace(/-(.)/g, function(_, c){ return c.toUpperCase() })


Hitting ⌘R should produce:


You're done.

Something went wrong with that request. Please try again.