diff options
author | Victor Kareh <vkareh@redhat.com> | 2023-03-10 11:17:24 -0500 |
---|---|---|
committer | David Faure <faure@kde.org> | 2023-08-23 07:45:25 +0000 |
commit | 20ac149f46552063427ad9b7494c96ffe44bff24 (patch) | |
tree | af2166adc9ff5fc52bdd4f3aebf5234de3d3c2eb | |
parent | 02741a47ae6bc8e3f335e37806d9abcd8db341f3 (diff) |
Add todo.txt mime type
Adds mime type for the todo.txt file spec defined in
https://github.com/todotxt/todo.txt
-rw-r--r-- | data/freedesktop.org.xml.in | 9 | ||||
-rw-r--r-- | tests/mime-detection/list | 2 | ||||
-rw-r--r-- | tests/mime-detection/todo.txt | 8 |
3 files changed, 19 insertions, 0 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in index 9c5180b..574ebb7 100644 --- a/data/freedesktop.org.xml.in +++ b/data/freedesktop.org.xml.in @@ -6734,6 +6734,15 @@ command to generate the output files. <sub-class-of type="text/x-readme"/> <glob pattern="*.nfo"/> </mime-type> + <mime-type type="text/x-todo-txt"> + <comment>todo.txt file</comment> + <sub-class-of type="text/plain"/> + <magic priority="10"> + <match type="string" value="(A) " offset="0"/> + <match type="string" value="x " offset="0"/> + </magic> + <glob weight="10" pattern="todo.txt"/> + </mime-type> <mime-type type="text/x-rpm-spec"> <comment>RPM Spec File</comment> <acronym>RPM</acronym> diff --git a/tests/mime-detection/list b/tests/mime-detection/list index f4844f3..6643c6b 100644 --- a/tests/mime-detection/list +++ b/tests/mime-detection/list @@ -379,6 +379,8 @@ simple-troff.mm text/x-troff-mm xx test.cl text/x-opencl-src ox # hand-made test.mc2 text/vnd.senx.warpscript ox +# Copied from http://todotxt.org/todo.txt +todo.txt text/x-todo-txt # From https://github.com/OpenVPN/openvpn/blob/master/sample/sample-plugins/keying-material-exporter-demo/client.ovpn openvpn.ovpn application/x-openvpn-profile ox openvpn.openvpn application/x-openvpn-profile ox diff --git a/tests/mime-detection/todo.txt b/tests/mime-detection/todo.txt new file mode 100644 index 0000000..7836996 --- /dev/null +++ b/tests/mime-detection/todo.txt @@ -0,0 +1,8 @@ +(A) Call Mom @Phone +Family +(A) Schedule annual checkup +Health +(B) Outline chapter 5 +Novel @Computer +(C) Add cover sheets @Office +TPSReports +Plan backyard herb garden @Home +Pick up milk @GroceryStore +Research self-publishing services +Novel @Computer +x Download Todo.txt mobile app @Phone |