Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

upgrade to use of MMD 3.0

  • Loading branch information...
commit e4b0e48134a349061383fa1c2a89d12cd88cb7ec 1 parent 92f7ca1
Fletcher T. Penney authored
29 Commands/Convert Document : Selection to HTML(snippet).tmCommand
... ... @@ -1,29 +0,0 @@
1   -<?xml version="1.0" encoding="UTF-8"?>
2   -<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3   -<plist version="1.0">
4   -<dict>
5   - <key>beforeRunningCommand</key>
6   - <string>nop</string>
7   - <key>command</key>
8   - <string># Process the MultiMarkdown document and display as XHTML source
9   -
10   -cd "${TM_MULTIMARKDOWN_PATH:-$HOME/Library/Application Support/MultiMarkdown}"
11   -cd bin
12   -./addmetadata.pl "format: snippet" | ./mmd2XHTML.pl
13   -</string>
14   - <key>fallbackInput</key>
15   - <string>document</string>
16   - <key>input</key>
17   - <string>selection</string>
18   - <key>keyEquivalent</key>
19   - <string>^H</string>
20   - <key>name</key>
21   - <string>Convert Document / Selection to HTML(snippet)</string>
22   - <key>output</key>
23   - <string>openAsNewDocument</string>
24   - <key>scope</key>
25   - <string>text.html.markdown.multimarkdown</string>
26   - <key>uuid</key>
27   - <string>401A3DB4-7032-4046-A2B6-6021C20F4DE5</string>
28   -</dict>
29   -</plist>
51 Commands/Convert Document : Selection to PDF(XeLaTeX).tmCommand
... ... @@ -1,51 +0,0 @@
1   -<?xml version="1.0" encoding="UTF-8"?>
2   -<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3   -<plist version="1.0">
4   -<dict>
5   - <key>beforeRunningCommand</key>
6   - <string>nop</string>
7   - <key>command</key>
8   - <string># first figure out a name for the result
9   -NAME="${TM_FILENAME:-untitled}"
10   -BASENAME="${NAME%.*}"
11   -DST="/tmp/TextMate/$BASENAME"
12   -
13   -if [ ! -d /tmp/TextMate ]; then
14   -mkdir /tmp/TextMate
15   -fi
16   -
17   -# Copy possible ancillary files
18   -cd "${TM_FILEPATH%/*}"
19   -cp *.png *.bib *.gif *.jpg *.pdf /tmp/TextMate
20   -
21   -
22   -cd "${TM_MULTIMARKDOWN_PATH:-$HOME/Library/Application Support/MultiMarkdown}"
23   -cd bin
24   -cat &gt; "$DST.txt"
25   -
26   -
27   -./mmd2PDFXeLaTeX.pl "$DST.txt"
28   -
29   -# open in the users PDF viewer (falling back on Preview)
30   -viewer=$(find_app "${TM_PDF_VIEWER:-Preview.app}")
31   -if [ $? = 0 ];
32   - then open -a "$viewer" "$DST.pdf"
33   - else echo "Could not find your PDF viewer: ‘${TM_PDF_VIEWER:-Preview.app}’"
34   -fi
35   -</string>
36   - <key>fallbackInput</key>
37   - <string>document</string>
38   - <key>input</key>
39   - <string>selection</string>
40   - <key>keyEquivalent</key>
41   - <string>^P</string>
42   - <key>name</key>
43   - <string>Convert Document / Selection to PDF(XeLaTeX)</string>
44   - <key>output</key>
45   - <string>showAsHTML</string>
46   - <key>scope</key>
47   - <string>text.html.markdown.multimarkdown</string>
48   - <key>uuid</key>
49   - <string>F05719F8-89F2-48F0-88F6-8CFAEEF5BA91</string>
50   -</dict>
51   -</plist>
53 Commands/Convert Document : Selection to PDF(letter).tmCommand
... ... @@ -1,53 +0,0 @@
1   -<?xml version="1.0" encoding="UTF-8"?>
2   -<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3   -<plist version="1.0">
4   -<dict>
5   - <key>beforeRunningCommand</key>
6   - <string>nop</string>
7   - <key>command</key>
8   - <string># first figure out a name for the result
9   -NAME="${TM_FILENAME:-untitled}"
10   -BASENAME="${NAME%.*}"
11   -DST="/tmp/TextMate/$BASENAME"
12   -
13   -if [ ! -d /tmp/TextMate ]; then
14   -mkdir /tmp/TextMate
15   -fi
16   -
17   -# Copy possible ancillary files
18   -cd "${TM_FILEPATH%/*}"
19   -cp *.png *.bib *.gif *.jpg *.pdf /tmp/TextMate
20   -
21   -
22   -cd "${TM_MULTIMARKDOWN_PATH:-$HOME/Library/Application Support/MultiMarkdown}"
23   -cd bin
24   -cat &gt; "$DST.txt"
25   -
26   -
27   -./mmd2letter.pl "$DST.txt"
28   -
29   -# open in the users PDF viewer (falling back on Preview)
30   -viewer=$(find_app "${TM_PDF_VIEWER:-Preview.app}")
31   -if [ $? = 0 ];
32   - then
33   - open -a "$viewer" "$DST.pdf"
34   - open -a "$viewer" "$DST-envelope.pdf"
35   - else echo "Could not find your PDF viewer: ‘${TM_PDF_VIEWER:-Preview.app}’"
36   -fi
37   -</string>
38   - <key>fallbackInput</key>
39   - <string>document</string>
40   - <key>input</key>
41   - <string>selection</string>
42   - <key>keyEquivalent</key>
43   - <string>^P</string>
44   - <key>name</key>
45   - <string>Convert Document / Selection to PDF(letter)</string>
46   - <key>output</key>
47   - <string>showAsHTML</string>
48   - <key>scope</key>
49   - <string>text.html.markdown.multimarkdown</string>
50   - <key>uuid</key>
51   - <string>E57A1B41-D70E-44C9-9512-45026C0A32F2</string>
52   -</dict>
53   -</plist>
5 Commands/Convert Document:Selection to HTML.plist
@@ -11,10 +11,7 @@ if [[ -f "$TM_FILEPATH" ]]; then
11 11 echo "&lt;base href='tm-file://${TM_FILEPATH// /%20}'&gt;"
12 12 fi
13 13
14   -cd "${TM_MULTIMARKDOWN_PATH:-$HOME/Library/Application Support/MultiMarkdown}"
15   -cd bin
16   -./mmd2XHTML.pl
17   -</string>
  14 +multimarkdown</string>
18 15 <key>fallbackInput</key>
19 16 <string>document</string>
20 17 <key>input</key>
4 Commands/Convert Document:Selection to LaTeX.plist
@@ -8,9 +8,7 @@
8 8 <string># Process the MultiMarkdown document using the univeral approach
9 9 # This defaults to memoir
10 10
11   -cd "${TM_MULTIMARKDOWN_PATH:-$HOME/Library/Application Support/MultiMarkdown}"
12   -cd bin
13   -./mmd2LaTeX.pl</string>
  11 +multimarkdown -t latex</string>
14 12 <key>fallbackInput</key>
15 13 <string>document</string>
16 14 <key>input</key>
51 Commands/Convert Document:Selection to PDF.plist
... ... @@ -1,51 +0,0 @@
1   -<?xml version="1.0" encoding="UTF-8"?>
2   -<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3   -<plist version="1.0">
4   -<dict>
5   - <key>beforeRunningCommand</key>
6   - <string>nop</string>
7   - <key>command</key>
8   - <string># first figure out a name for the result
9   -NAME="${TM_FILENAME:-untitled}"
10   -BASENAME="${NAME%.*}"
11   -DST="/tmp/TextMate/$BASENAME"
12   -
13   -if [ ! -d /tmp/TextMate ]; then
14   -mkdir /tmp/TextMate
15   -fi
16   -
17   -# Copy possible ancillary files
18   -cd "${TM_FILEPATH%/*}"
19   -cp *.png *.bib *.gif *.jpg *.pdf /tmp/TextMate
20   -
21   -
22   -cd "${TM_MULTIMARKDOWN_PATH:-$HOME/Library/Application Support/MultiMarkdown}"
23   -cd bin
24   -cat &gt; "$DST.txt"
25   -
26   -
27   -./mmd2PDF.pl "$DST.txt"
28   -
29   -# open in the users PDF viewer (falling back on Preview)
30   -viewer=$(find_app "${TM_PDF_VIEWER:-Preview.app}")
31   -if [ $? = 0 ];
32   - then open -a "$viewer" "$DST.pdf"
33   - else echo "Could not find your PDF viewer: ‘${TM_PDF_VIEWER:-Preview.app}’"
34   -fi
35   -</string>
36   - <key>fallbackInput</key>
37   - <string>document</string>
38   - <key>input</key>
39   - <string>selection</string>
40   - <key>keyEquivalent</key>
41   - <string>^P</string>
42   - <key>name</key>
43   - <string>Convert Document / Selection to PDF</string>
44   - <key>output</key>
45   - <string>showAsHTML</string>
46   - <key>scope</key>
47   - <string>text.html.markdown.multimarkdown</string>
48   - <key>uuid</key>
49   - <string>DB5085DA-3E95-4020-8521-C9702168F160</string>
50   -</dict>
51   -</plist>
2  Commands/Generate Output and open in Browser.plist
@@ -11,7 +11,7 @@ mkdir /tmp/TextMate
11 11
12 12 cd "${TM_MULTIMARKDOWN_PATH:-$HOME/Library/Application Support/MultiMarkdown}"
13 13 cd bin
14   -./mmd2XHTML.pl &gt; /tmp/TextMate/output.html
  14 +multimarkdown &gt; /tmp/TextMate/output.html
15 15 open /tmp/TextMate/output.html</string>
16 16 <key>fallbackInput</key>
17 17 <string>document</string>
4 Commands/MultiMarkdown Preview.tmCommand
@@ -18,9 +18,7 @@ if [[ -f "$TM_FILEPATH" ]]; then
18 18 fi
19 19
20 20
21   -cd "${TM_MULTIMARKDOWN_PATH:-$HOME/Library/Application Support/MultiMarkdown}"
22   -cd bin
23   -./mmd2XHTML.pl</string>
  21 +multimarkdown</string>
24 22 <key>fallbackInput</key>
25 23 <string>document</string>
26 24 <key>input</key>
8 info.plist
@@ -18,6 +18,10 @@
18 18 <string>485F0ABF-7A7D-4432-8AB6-702414D6ADBD</string>
19 19 <string>4AB16529-60A5-4CE7-8E97-B0785CAF87C4</string>
20 20 <string>3BAE5ECF-9006-43D0-9AEB-28FAFE526840</string>
  21 + <string>401A3DB4-7032-4046-A2B6-6021C20F4DE5</string>
  22 + <string>DB5085DA-3E95-4020-8521-C9702168F160</string>
  23 + <string>E57A1B41-D70E-44C9-9512-45026C0A32F2</string>
  24 + <string>F05719F8-89F2-48F0-88F6-8CFAEEF5BA91</string>
21 25 </array>
22 26 <key>description</key>
23 27 <string>&lt;a href="http://daringfireball.net/projects/markdown/"&gt;Markdown&lt;/a&gt; allows you to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML. This bundle provides preview functionality, syntax highlighting, and several useful commands. Improved support for &lt;a href="http://fletcherpenney.net/multimarkdown/"&gt;MultiMarkdown&lt;/a&gt; has been added.</string>
@@ -165,11 +169,7 @@
165 169 <string>F3A754C3-CE6B-11D9-9C17-000A95C0F626</string>
166 170 <string>724FCFF6-CE6B-11D9-9C17-000A95C0F626</string>
167 171 <string>9F73CBC1-E9C0-41A4-891F-B2879A1852F7</string>
168   - <string>401A3DB4-7032-4046-A2B6-6021C20F4DE5</string>
169 172 <string>67EB96A4-4213-42C9-9C47-B886A4B8AC93</string>
170   - <string>DB5085DA-3E95-4020-8521-C9702168F160</string>
171   - <string>E57A1B41-D70E-44C9-9512-45026C0A32F2</string>
172   - <string>F05719F8-89F2-48F0-88F6-8CFAEEF5BA91</string>
173 173 <string>D9118E94-4E23-4B75-88D7-6BFEBAA70D1B</string>
174 174 <string>14199AC7-CF55-404F-B035-A0F88E7F6141</string>
175 175 <string>2E520800-167A-4D3F-99F1-750EBEFCF8BA</string>

0 comments on commit e4b0e48

Please sign in to comment.
Something went wrong with that request. Please try again.