"Christopher M. Miles" <[email protected]> writes: >>> (completing-read-multiple "Files to keep as attachment: " >>> (directory-files >>> (or (progn >>> (require 'dired-aux) >>> (dired-dwim-target-directory)) >>> (read-directory-name >>> "Select source directory: " >>> default-directory)))) >> >> This will force multi-step UI, which is awkward. >> > > If not using `completing-read-multiple`, then how to select multiple files > for org-attach?
My main problem is not completing-read-multiple, but the fact that we have to read-directory-name and then also completing-read-multiple. Ideally, it should be a single interactive prompt, not two prompts one by one. In practice, I suspect that we will need to implement a custom version of `read-file-name-default' that will read multiple files rather than one. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>
