Bundle that aims to replace the Eclipse-based Force.com IDE with TextMate
JavaScript Ruby
Switch branches/tags
Nothing to show
Pull request Compare This branch is 100 commits behind joeferraro:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.



MavensMate is a TextMate bundle that aims to replicate the functionality of the Eclipse-based Force.com IDE. In its current state, MavensMate enables developers to create Salesforce.com projects, connect them to SVN, create certain types of metadata, and compile and retrieve metadata, all from TextMate.


Preparing TextMate for Ruby 1.9+

In order for TextMate to run Ruby 1.9+, we'll need to do a little legwork:

1. Install rvm (Ruby Version Manager) if you have not already:

``` $ bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer ) ```

2. Install Ruby 1.9.2:

``` $ rvm install 1.9.2 $ rvm use 1.9.2 --default ```

3. Update TextMate's osx-plist for Ruby 1.9:

``` $ git clone git://github.com/kballard/osx-plist.git $ cd osx-plist/ext/plist $ ruby extconf.rb && make $ cp plist.bundle /Applications/TextMate.app/Contents/SharedSupport/Support/lib/osx/ ```

4. Make TextMate aware that we want to use Ruby 1.9.2:

Prepend your Ruby 1.9.2 installation location to your TextMate PATH shell variable. Your PATH shell variable should look something like:


Create a TextMate shell variable named GEM_PATH and set it to the path of your newly installed 1.9.2 gems. Should look something like:


5. Now, let's install a couple of gems:

``` $ gem install savon $ gem install rubyzip ```

*Note: DO NOT use sudo to work with RVM gems (http://beginrescueend.com/rubies/rubygems)

6. Finally, we need to create a TextMate shell variable that tells MavensMate where to put your projects. Create a shell variable named FM_PROJECT_FOLDER and set it the location of your choice:

``` /Users/username/development/projects ```

Finally! Installing MavensMate

Installing MavensMate via Git (recommended)

``` $ mkdir -p ~/Library/Application\ Support/TextMate/Bundles $ cd ~/Library/Application\ Support/TextMate/Bundles $ git clone git://github.com/joeferraro/MavensMate.tmbundle.git "MavensMate.tmbundle" $ osascript -e 'tell app "TextMate" to reload bundles' ```

Installing MavensMate manually

  1. Download this project
  2. Unzip and rename the parent directory to "MavensMate.tmbundle"
  3. Double click "MavensMate.tmbundle". TextMate will automatically install the bundle
  4. Open TextMate, go to Preferences --> Advanced --> Shell Variables and add a Shell Variable called "FM_PROJECT_FOLDER" with the value being the location where you'd like your Salesforce.com projects to reside (for example: '/Users/joe/Projects') [*notice the absolute path*]

MavensMate Shortcut Keys (configurable)

Open MavensMate options:

Control + Option + Command + M

Compile current metadata:

Control + Option + Command + C

Some extra goodies

We recommend the following to augment MavensMate: