GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: TextMate Bundle from Samurai Coder
Homepage: http://samuraicoder.net
Clone URL: git://github.com/samuraicoder/samuraicoder-tmbundle.git
Click here to lend your support to: samuraicoder-tmbundle and make a donation at www.pledgie.com !
name age message
file .gitignore Thu Aug 21 10:01:33 -0700 2008 * Added .gitignore file [samuraicoder]
directory Commands/ Sat Nov 29 17:11:08 -0800 2008 Refactored code [samuraicoder]
file README.markdown Fri Nov 14 18:41:28 -0800 2008 mentions roodi and other tools in readmepage [samuraicoder]
directory Snippets/ Sat Nov 29 20:40:21 -0800 2008 Added TextMate Project file to ignore [samuraicoder]
file info.plist Sat Nov 29 17:00:15 -0800 2008 Renamed wrapper for RubyLearning [samuraicoder]
README.markdown

Samurai Coder TextMate Bundle

These are the snippets and commands I use. Most of them are simple snippets. These may help get you started with making/customizing your bundles.

Install

Git users

  1. git clone git://github.com/samuraicoder/samuraicoder-tmbundle.git ~/Library/Application\ Support/TextMate/Bundles/samuraicoder.tmbundle

  2. Reload the bundles from “Bundles” → “Bundle Editor” → “Reload Bundle”

Non-Git users

  • Use “Download” feature in GitHub. Rename the folder to “samuraicoder.tmbundle”.

Update

  • Use “Update samuraicoder bundle” inside the bundle. Only available for users who used Git for installation.

Snippets and Commands

These are some of the snippets and commands. Not everything is covered.

HTML

  • Use divi, divc, divic or divci to make div tag pair with a closing comment.
  • Just press favicon and tab key. It generates links to favicon.
  • Some sample microformats snippets are added. Play with them.

CSS

  • Some useful and stolen snippets.

Ruby

  • Either using mag or magic, you can insert a magic comment for Ruby 1.9 files.
  • I can’t spell yield correctly, so I assigned ⌃-Y for that. No more typos.
  • Supports cheat, roodi and rubydoctest

Ruby on Rails

PHP

  • Type debug and hit tab key. It works in PHP or HTML. Useful for debug print.

Git

  • Make a .gitignore file and inside the file type gitignore and press ⇥. A basic ignore rule will be added.

HAML and SASS

  • After making a application.html.haml in app/view/layouts, you can insert my HAML template using haml tab trigger.
  • Added filters support.
  • Google Analytics code snippet for HAML. Use google for tab trigger
  • Visit HAML and SAAS documentation using commands.

Perl

  • Perl Cheatsheet is available from ⌃-H.

Names

  • Type scripty and press ⇥ yileds script.aculo.us.
  • Type dhh and press ⇥ yileds the name of our father.