aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/assistant/Files.js
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/assistant/Files.js')
-rw-r--r--desktop/assistant/Files.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/desktop/assistant/Files.js b/desktop/assistant/Files.js
index a75e693..bcbd9bc 100644
--- a/desktop/assistant/Files.js
+++ b/desktop/assistant/Files.js
@@ -48,6 +48,11 @@ function kind(path) {
function chats(k) { return CHAT.includes(k); }
+// kind -> suffixes, for a file dialog's filter (deck-it's picker).
+function exts() {
+ return { text: TEXT, code: CODE, image: IMAGE, video: VIDEO, archive: ARCHIVE, pdf: [".pdf"] };
+}
+
// For a file the name says nothing about (a script with no suffix), from
// the mime type `file -b --mime-type` reports. Prose and data are text;
// any other text type, scripts and source among them, is code.