Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Drag commands for inserting urls and hrefs into existing tags dep…
…ending on scope git-svn-id: http://macromates.com/svn/Bundles/trunk/Bundles/HTML.tmbundle@8609 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
- Loading branch information
subtlegradient
committed
Dec 5, 2007
1 parent
17227a2
commit eeef3ae
Showing
4 changed files
with
102 additions
and
0 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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,33 @@ | |||
<?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>command</key> | |||
<string>title=`echo $TM_DROPPED_FILE | perl -pe 's/^(.*\/)?(.*?)(\..*)?$/$2/g'` | |||
echo -n "href=\"$TM_DROPPED_FILE\" title=\"\${1:$title}\" "</string> | |||
<key>draggedFileExtensions</key> | |||
<array> | |||
<string>html</string> | |||
<string>htm</string> | |||
<string>rhtml</string> | |||
<string>shtml</string> | |||
<string>phtml</string> | |||
<string>php</string> | |||
<string>php3</string> | |||
<string>php4</string> | |||
<string>php5</string> | |||
<string>cfm</string> | |||
<string>cfml</string> | |||
<string>dbm</string> | |||
<string>dbml</string> | |||
</array> | |||
<key>name</key> | |||
<string>Insert Anchor href</string> | |||
<key>output</key> | |||
<string>insertAsSnippet</string> | |||
<key>scope</key> | |||
<string>text.html meta.tag entity.other.attribute-name -string.quoted</string> | |||
<key>uuid</key> | |||
<string>6F71B1E5-81D0-4D94-A2C5-7688A3D3EDB3</string> | |||
</dict> | |||
</plist> |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,33 @@ | |||
<?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>command</key> | |||
<string>title=`echo $TM_DROPPED_FILE | perl -pe 's/^(.*\/)?(.*?)(\..*)?$/$2/g'` | |||
echo -n " href=\"$TM_DROPPED_FILE\" title=\"\${1:$title}\""</string> | |||
<key>draggedFileExtensions</key> | |||
<array> | |||
<string>html</string> | |||
<string>htm</string> | |||
<string>rhtml</string> | |||
<string>shtml</string> | |||
<string>phtml</string> | |||
<string>php</string> | |||
<string>php3</string> | |||
<string>php4</string> | |||
<string>php5</string> | |||
<string>cfm</string> | |||
<string>cfml</string> | |||
<string>dbm</string> | |||
<string>dbml</string> | |||
</array> | |||
<key>name</key> | |||
<string>Insert Anchor href</string> | |||
<key>output</key> | |||
<string>insertAsSnippet</string> | |||
<key>scope</key> | |||
<string>text.html meta.tag -string.quoted -entity</string> | |||
<key>uuid</key> | |||
<string>BD4AEF38-638B-4C47-A762-4A0A6190F9C7</string> | |||
</dict> | |||
</plist> |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,33 @@ | |||
<?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>command</key> | |||
<string>title=`echo $TM_DROPPED_FILE | perl -pe 's/^(.*\/)?(.*?)(\..*)?$/$2/g'` | |||
echo -n "$TM_DROPPED_FILE\" title=\"\${1:$title}"</string> | |||
<key>draggedFileExtensions</key> | |||
<array> | |||
<string>html</string> | |||
<string>htm</string> | |||
<string>rhtml</string> | |||
<string>shtml</string> | |||
<string>phtml</string> | |||
<string>php</string> | |||
<string>php3</string> | |||
<string>php4</string> | |||
<string>php5</string> | |||
<string>cfm</string> | |||
<string>cfml</string> | |||
<string>dbm</string> | |||
<string>dbml</string> | |||
</array> | |||
<key>name</key> | |||
<string>Insert URL</string> | |||
<key>output</key> | |||
<string>insertAsSnippet</string> | |||
<key>scope</key> | |||
<string>text.html meta.tag string.quoted</string> | |||
<key>uuid</key> | |||
<string>30130739-4E58-4720-9B27-88C7EE168D83</string> | |||
</dict> | |||
</plist> |
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