forked from textmate/markdown.tmbundle
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathImage Tag.plist
37 lines (37 loc) · 1.03 KB
/
Image Tag.plist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?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>base=${TM_DROPPED_FILE##*/}
alt=$(tr <<<${base%.*} '[_-]' ' '|perl -pe 's/(\w+)/\u$1/g')
if [ -n "$TM_DROPPED_FILE_STRIP_ROOT" ]
then
file=$(sed -e "s|^$TM_DROPPED_FILE_STRIP_ROOT||" <<< $TM_DROPPED_FILE);
else
file=${TM_DROPPED_FILE};
fi
echo -n ""</string>
<key>draggedFileExtensions</key>
<array>
<string>png</string>
<string>PNG</string>
<string>jpeg</string>
<string>JPEG</string>
<string>jpg</string>
<string>JPG</string>
<string>gif</string>
<string>GIF</string>
<string>pdf</string>
<string>PDF</string>
</array>
<key>name</key>
<string>Insert Image Tag</string>
<key>output</key>
<string>insertAsSnippet</string>
<key>scope</key>
<string>text.html.markdown -meta.disable-markdown</string>
<key>uuid</key>
<string>DA18D8BE-792F-11D9-A212-000D93B3A10E</string>
</dict>
</plist>