This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
rushmate /
| name | age | message | |
|---|---|---|---|
| |
History.txt | Mon Aug 18 18:04:01 -0700 2008 | |
| |
MIT-LICENSE | Wed Aug 20 04:25:04 -0700 2008 | |
| |
Manifest.txt | Thu Aug 14 21:03:57 -0700 2008 | |
| |
README | Mon Aug 18 18:02:39 -0700 2008 | |
| |
Rakefile | Wed Aug 20 04:30:38 -0700 2008 | |
| |
lib/ | Mon Aug 18 17:23:59 -0700 2008 | |
| |
rushmate.gemspec | Wed Aug 20 04:30:38 -0700 2008 | |
| |
test/ | Thu Aug 14 21:03:57 -0700 2008 |
README
= Rushmate Rushmate attempts to make Textmate (http://macromates.com) custom command writing in ruby cleaner and smaller. It does this by leveraging rush (http://rush.heroku.com/). == Dependencies * Rush == Install gem sources -a http://gems.github.com sudo gem install schlueter-rushmate == Sample After installing rushmate. You would make a command in Textmate with the following text. #!/usr/bin/env ruby require 'rubygems' require 'rushmate' Rushmate::Command.new { # find ruby files with the current word in textmate found_files = project_directory["**/#{current_word.downcase}.rb"] if found_files.empty? # if you can't find any files show a tool tip exit.show_tool_tip("can't find #{current_word.downcase}.rb in project") else if found_files.size == 1 # if there is only 1 file go ahead and switch to that file found_files.mate else # if there are multiple files prompt the user for which file they want to switch to # then switch to their selection menu_files = found_files.collect { |f| f.full_path.gsub(project_directory.full_path, "") } project_directory[user_input.quick_menu_from_array(menu_files)].mate end end } For more information on creating Textmate commands read http://manual.macromates.com/en/commands#commands.







