221eb9b90ab4d03b6f00e62f31e979459e08e7ca

Author
冯不游 <71683364+mefengl@users.noreply.github.com>
Committer
Carlo Sala <carlosalag@protonmail.com>
Date

Message

feat(marktext): add plugin

Closes #11507

Diff

 1diff --git a/plugins/marktext/README.md b/plugins/marktext/README.md
 2new file mode 100644
 3index 0000000000000000000000000000000000000000..71d287451692e5574a40f6ad34d5cb4f02052981
 4--- /dev/null
 5+++ b/plugins/marktext/README.md
 6@@ -0,0 +1,17 @@
 7+## marktext
 8+
 9+Plugin for MarkText, a previewer for Markdown files on Mac OS X 
10+
11+### Requirements
12+
13+ * [MarkText](https://github.com/marktext/marktext)
14+
15+### Usage
16+
17+ * If `marktext` is called without an argument, open MarkText
18+
19+ * If `marktext` is passed a file, open it in MarkText
20+
21+### Credits
22+
23+ * just copied from plugins/marked2, all credits to marked2 plugin author
24diff --git a/plugins/marktext/marktext.plugin.zsh b/plugins/marktext/marktext.plugin.zsh
25new file mode 100644
26index 0000000000000000000000000000000000000000..1da85bcca8c8682b6e65f9364933ce8a391631bc
27--- /dev/null
28+++ b/plugins/marktext/marktext.plugin.zsh
29@@ -0,0 +1,7 @@
30+#
31+# If marktext is called without an argument, open MarkText
32+# If marktext is passed a file, open it in MarkText
33+#
34+function marktext() {
35+    open -a "MarkText.app" "$1"
36+}