diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-10 12:15:23 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-10 12:15:23 +0100 |
| commit | 80306b3a3ad59e3a06a7e694c69be3ada976ff03 (patch) | |
| tree | 6d9652b779203a45ce3715770c5de25ba37ca0bf /desktop/assistant/Files.js | |
| parent | 4736a1a80ba984d3dfb9ff3bcfef6b63b570c6a1 (diff) | |
| download | quickshell-80306b3a3ad59e3a06a7e694c69be3ada976ff03.tar.gz quickshell-80306b3a3ad59e3a06a7e694c69be3ada976ff03.zip | |
feat(assistant): catalog IPC for deck-it, presets sent as written
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'desktop/assistant/Files.js')
| -rw-r--r-- | desktop/assistant/Files.js | 5 |
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. |
