Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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...
commit b5f95611ffe1122fe6bf8c164ca61c6ce755b737 1 parent 5cc7a94
@sorbits sorbits authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Snippets/#!;usr;local;bin;ruby -w.plist
View
2  Snippets/#!;usr;local;bin;ruby -w.plist
@@ -8,7 +8,7 @@
<key>name</key>
<string>#!/usr/bin/env ruby -wKU</string>
<key>scope</key>
- <string>source.ruby</string>
+ <string>source.ruby, L:dyn.caret.begin.document</string>
<key>tabTrigger</key>
<string>rb</string>
<key>uuid</key>
Please sign in to comment.
Something went wrong with that request. Please try again.