Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NEW Context Sensitive HTML attribute completion. Bound to space when …
…your caret is just before the last > in the opening tag. git-svn-id: http://macromates.com/svn/Bundles/trunk/Bundles/HTML.tmbundle@7928 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
- Loading branch information
subtlegradient
committed
Aug 8, 2007
1 parent
7f390b3
commit 31aad99
Showing
4 changed files
with
72 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>beforeRunningCommand</key> | ||
<string>nop</string> | ||
<key>bundleUUID</key> | ||
<string>467B298F-6227-11D9-BFB1-000D93589AF6</string> | ||
<key>command</key> | ||
<string>#!/usr/bin/env ruby | ||
require "#{ENV['TM_SUPPORT_PATH']}/lib/codecompletion" | ||
print TextmateCodeCompletion.new( | ||
#[%{class=""}, %{id=""}, %{style=""}, %{<img src="/images/"}, %{<img border="0"}, ], | ||
TextmateCompletionsText.new(ENV['TM_COMPLETIONS'],{:split=>','}).to_ary, | ||
STDIN.read, | ||
{:scope=>:html_attributes} | ||
).to_snippet</string> | ||
<key>fallbackInput</key> | ||
<string>line</string> | ||
<key>input</key> | ||
<string>selection</string> | ||
<key>keyEquivalent</key> | ||
<string> </string> | ||
<key>name</key> | ||
<string>CodeCompletion HTML Attributes</string> | ||
<key>output</key> | ||
<string>insertAsSnippet</string> | ||
<key>scope</key> | ||
<string>text.html punctuation.definition.tag -source</string> | ||
<key>tabTrigger</key> | ||
<string>"</string> | ||
<key>uuid</key> | ||
<string>CBD82CF3-74E9-4E7A-B3F6-9348754EB5AA</string> | ||
</dict> | ||
</plist> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters