Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Shebang snippet (rb⇥) works at begin-of-doc in non-ruby documents

Previously you could only use the tab trigger when the file type was set to Ruby (or something derived from Ruby), but if the caret is placed at the beginning of the document, then it will now work regardless of file type.

The chance of this conflicting with another tab trigger is pretty low, and a future version of TextMate may automatically switch file type when the first line is changed (to something matched by a grammars first-line-match), which is the motivation behind this change.
  • Loading branch information...
1 parent 5cc7a94 commit b5f95611ffe1122fe6bf8c164ca61c6ce755b737 @sorbits sorbits committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  Snippets/#!;usr;local;bin;ruby -w.plist
2  Snippets/#!;usr;local;bin;ruby -w.plist
@@ -8,7 +8,7 @@
<string>#!/usr/bin/env ruby -wKU</string>
- <string>source.ruby</string>
+ <string>source.ruby, L:dyn.caret.begin.document</string>

0 comments on commit b5f9561

Please sign in to comment.
Something went wrong with that request. Please try again.