Skip to content

Instantly share code, notes, and snippets.

@tiffon
Created December 19, 2012 01:17

Revisions

  1. tiffon revised this gist Dec 19, 2012. 1 changed file with 17 additions and 1 deletion.
    18 changes: 17 additions & 1 deletion Find Results.hidden-tmLanguage
    Original file line number Diff line number Diff line change
    @@ -12,6 +12,7 @@

    <!-- add the filetype extensions, here -->
    <!-- these are XML formatted files: -->

    <string>^([^ ].*\.(?:xml|tmLanguage|hidden-tmLanguage|tmTheme):)$</string>

    <key>beginCaptures</key>
    @@ -30,18 +31,24 @@
    <key>include</key>

    <!-- reference to something in the "repository" -->

    <string>#line-numbers</string>
    </dict>
    <dict>

    <!-- which syntax should match up to the filetype extensions listed above: -->
    <!-- to find out what the "scopeName" is, refer to the corresponding *.tmLanguage file -->
    <!-- for XML, this is ~/Library/Application Support/Sublime Text 2/Packages/XML/XSL.tmLanguage -->

    <key>include</key>
    <string>text.xml</string>
    </dict>
    </array>
    </dict>
    <dict>

    <!-- *.html files -->

    <key>begin</key>
    <string>^([^ ].*\.html:)$</string>
    <key>beginCaptures</key>
    @@ -61,13 +68,18 @@
    <string>#line-numbers</string>
    </dict>
    <dict>

    <!-- I'm working with django templates a lot, lately, so I have it set to that syntax -->

    <key>include</key>
    <string>text.html.django</string>
    </dict>
    </array>
    </dict>
    <dict>
    <key>begin</key>

    <!-- CSS -->
    <string>^([^ ].*\.css:)$</string>
    <key>beginCaptures</key>
    <dict>
    @@ -87,6 +99,9 @@
    </dict>
    <dict>
    <key>include</key>

    <!-- etc.. -->

    <string>source.css</string>
    </dict>
    </array>
    @@ -129,7 +144,7 @@
    </dict>
    </dict>

    <!-- this is the initial settings for this file -- (I think the order in the file defines precedence) -->
    <!-- this is the initial settings for this file -- (I think declaration order defines precedence) -->
    <!-- keeping it here for unrecognized / configured filetypes -->

    <dict>
    @@ -159,6 +174,7 @@
    </array>

    <!-- stuff in the "repository" is just the line number matching that were originally in the file -->

    <key>repository</key>
    <dict>
    <key>line-numbers</key>
  2. tiffon revised this gist Dec 19, 2012. 1 changed file with 16 additions and 1 deletion.
    17 changes: 16 additions & 1 deletion Find Results.hidden-tmLanguage
    Original file line number Diff line number Diff line change
    @@ -8,8 +8,12 @@
    <key>patterns</key>
    <array>
    <dict>
    <key>begin</key>
    <key>begin</key>

    <!-- add the filetype extensions, here -->
    <!-- these are XML formatted files: -->
    <string>^([^ ].*\.(?:xml|tmLanguage|hidden-tmLanguage|tmTheme):)$</string>

    <key>beginCaptures</key>
    <dict>
    <key>1</key>
    @@ -24,9 +28,14 @@
    <array>
    <dict>
    <key>include</key>

    <!-- reference to something in the "repository" -->
    <string>#line-numbers</string>
    </dict>
    <dict>

    <!-- which syntax should match up to the filetype extensions listed above: -->
    <!-- to find out what the "scopeName" is, refer to the corresponding *.tmLanguage file -->
    <key>include</key>
    <string>text.xml</string>
    </dict>
    @@ -119,6 +128,10 @@
    </dict>
    </dict>
    </dict>

    <!-- this is the initial settings for this file -- (I think the order in the file defines precedence) -->
    <!-- keeping it here for unrecognized / configured filetypes -->

    <dict>
    <key>match</key>
    <string>^ +([0-9]+) </string>
    @@ -144,6 +157,8 @@
    </dict>
    </dict>
    </array>

    <!-- stuff in the "repository" is just the line number matching that were originally in the file -->
    <key>repository</key>
    <dict>
    <key>line-numbers</key>
  3. tiffon created this gist Dec 19, 2012.
    183 changes: 183 additions & 0 deletions Find Results.hidden-tmLanguage
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,183 @@
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>name</key>
    <string>Find Results</string>

    <key>patterns</key>
    <array>
    <dict>
    <key>begin</key>
    <string>^([^ ].*\.(?:xml|tmLanguage|hidden-tmLanguage|tmTheme):)$</string>
    <key>beginCaptures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>entity.name.filename.find-in-files</string>
    </dict>
    </dict>
    <key>end</key>
    <string>^[^ ]</string>
    <key>patterns</key>
    <array>
    <dict>
    <key>include</key>
    <string>#line-numbers</string>
    </dict>
    <dict>
    <key>include</key>
    <string>text.xml</string>
    </dict>
    </array>
    </dict>
    <dict>
    <key>begin</key>
    <string>^([^ ].*\.html:)$</string>
    <key>beginCaptures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>entity.name.filename.find-in-files</string>
    </dict>
    </dict>
    <key>end</key>
    <string>^[^ ]</string>
    <key>patterns</key>
    <array>
    <dict>
    <key>include</key>
    <string>#line-numbers</string>
    </dict>
    <dict>
    <key>include</key>
    <string>text.html.django</string>
    </dict>
    </array>
    </dict>
    <dict>
    <key>begin</key>
    <string>^([^ ].*\.css:)$</string>
    <key>beginCaptures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>entity.name.filename.find-in-files</string>
    </dict>
    </dict>
    <key>end</key>
    <string>^[^ ]</string>
    <key>patterns</key>
    <array>
    <dict>
    <key>include</key>
    <string>#line-numbers</string>
    </dict>
    <dict>
    <key>include</key>
    <string>source.css</string>
    </dict>
    </array>
    </dict>
    <dict>
    <key>begin</key>
    <string>^([^ ].*\.js:)$</string>
    <key>beginCaptures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>entity.name.filename.find-in-files</string>
    </dict>
    </dict>
    <key>end</key>
    <string>^[^ ]</string>
    <key>patterns</key>
    <array>
    <dict>
    <key>include</key>
    <string>#line-numbers</string>
    </dict>
    <dict>
    <key>include</key>
    <string>source.js</string>
    </dict>
    </array>
    </dict>
    <dict>
    <key>match</key>
    <string>^([^ ].*):$</string>
    <key>captures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>entity.name.filename.find-in-files</string>
    </dict>
    </dict>
    </dict>
    <dict>
    <key>match</key>
    <string>^ +([0-9]+) </string>
    <key>captures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>constant.numeric.line-number.find-in-files</string>
    </dict>
    </dict>
    </dict>
    <dict>
    <key>match</key>
    <string>^ +([0-9]+):</string>
    <key>captures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>constant.numeric.line-number.match.find-in-files</string>
    </dict>
    </dict>
    </dict>
    </array>
    <key>repository</key>
    <dict>
    <key>line-numbers</key>
    <dict>
    <key>patterns</key>
    <array>
    <dict>
    <key>match</key>
    <string>^ +([0-9]+) </string>
    <key>captures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>constant.numeric.line-number.find-in-files</string>
    </dict>
    </dict>
    </dict>
    <dict>
    <key>match</key>
    <string>^ +([0-9]+):</string>
    <key>captures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>constant.numeric.line-number.match.find-in-files</string>
    </dict>
    </dict>
    </dict>
    </array>
    </dict>
    </dict>
    <key>scopeName</key>
    <string>text.find-in-files</string>
    </dict>
    </plist>