summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiovanni Alfredo Garciliano Díaz <rapunzel@disroot.org>2021-05-27 20:27:31 +0000
committerDavid Faure <faure@kde.org>2021-05-27 20:27:31 +0000
commit4dd4fd5cb54d03cb73102c6f1f674675b5186e47 (patch)
treeb062195219a205627be5199e3255308591fe4aad
parent81e887bd8d678ebbd541481c1f274a4ab5be2826 (diff)
downloadshared-mime-info-4dd4fd5cb54d03cb73102c6f1f674675b5186e47.tar.gz
adding org-mode
-rw-r--r--data/freedesktop.org.xml.in5
-rw-r--r--tests/mime-detection/list3
-rw-r--r--tests/mime-detection/test.org15
3 files changed, 23 insertions, 0 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in
index 7606ac23..07fcdae7 100644
--- a/data/freedesktop.org.xml.in
+++ b/data/freedesktop.org.xml.in
@@ -7680,4 +7680,9 @@ command to generate the output files.
</magic>
<glob pattern="*.smk"/>
</mime-type>
+ <mime-type type="text/org">
+ <comment>Org-mode file</comment>
+ <sub-class-of type="text/plain"/>
+ <glob pattern="*.org"/>
+ </mime-type>
</mime-info>
diff --git a/tests/mime-detection/list b/tests/mime-detection/list
index a9079f92..d408e21e 100644
--- a/tests/mime-detection/list
+++ b/tests/mime-detection/list
@@ -834,3 +834,6 @@ test.kt text/x-kotlin ox
# https://aomediacodec.github.io/av1-avif/
test.avif image/avif
test.avifs image/avif
+
+# Org-mode file
+test.org text/org ox \ No newline at end of file
diff --git a/tests/mime-detection/test.org b/tests/mime-detection/test.org
new file mode 100644
index 00000000..04365a8f
--- /dev/null
+++ b/tests/mime-detection/test.org
@@ -0,0 +1,15 @@
+#+TITLE: Prueba shared-mime-info
+#+AUTHOR: Autores
+#+DATE: 01-01-2021
+
+Lorem ipsum dolor sit amet, consectectur adisplicit elit
+* Prima
+** Secunda
+** Tertia
+* Quarta
+** Quinta
+*** Sexta
+*** Septima
+** Octava
+* Nona
+** Decima