feat(bridge,ui): preserve file names and use system opener

- Add mattermost-download-dir custom (default ~/Downloads)
- Pass file_name and download_dir in download_file request
- Save files with original names in user-configured directory
- Open downloaded files via xdg-open (system default application)
This commit is contained in:
Ivan I. Ovchinnikov
2026-11-21 14:03:22 +03:00
parent d05a3a180e
commit d33edb4e44
5 changed files with 142 additions and 4 deletions
+5
View File
@@ -42,6 +42,11 @@ If `inline', show replies in the main buffer."
:type 'string
:group 'mattermost)
(defcustom mattermost-download-dir "~/Downloads"
"Directory where downloaded files are saved."
:type 'directory
:group 'mattermost)
(defface mattermost-sender-face
'((t (:weight bold)))
"Face used for message sender names in channel buffers."