[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Q: Is there a built-in way to read multiple file names?
From: |
Ihor Radchenko |
Subject: |
Re: Q: Is there a built-in way to read multiple file names? |
Date: |
Sat, 13 Jul 2024 14:19:53 +0000 |
Thierry Volpiatto <thievol@posteo.net> writes:
>> (For context, I am interested in this question to extend M-x org-attach
>> where I want to allow users select multiple files at once; or,
>> similarly, to extend the email attachment prompt)
>
> For your helm users you can already use something like this:
>
> (defvar helm-comp-read-use-marked)
> (if (bound-and-true-p helm-mode)
> (let ((helm-comp-read-use-marked t))
> (completing-read prompt candidates)) ; or read-file-name...
> (completing-read-multiple prompt candidates))
Sure, but I want the same thing to work for non-helm users.
Preferably, without having to write helm-specific/ivy-specific/etc code.
--
Ihor Radchenko // yantar92,
Org mode contributor,
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>
- Re: Q: Is there a built-in way to read multiple file names?, (continued)
- Re: Q: Is there a built-in way to read multiple file names?, Ihor Radchenko, 2024/07/23
- Re: Q: Is there a built-in way to read multiple file names?, Eli Zaretskii, 2024/07/23
- Re: Q: Is there a built-in way to read multiple file names?, Ihor Radchenko, 2024/07/23
- Re: Q: Is there a built-in way to read multiple file names?, Eli Zaretskii, 2024/07/23
- Re: Q: Is there a built-in way to read multiple file names?, Ihor Radchenko, 2024/07/23
- Re: Q: Is there a built-in way to read multiple file names?, Eli Zaretskii, 2024/07/23
- Re: Q: Is there a built-in way to read multiple file names?, Yuri Khan, 2024/07/23
- RE: [External] : Re: Q: Is there a built-in way to read multiple file names?, Drew Adams, 2024/07/23
- Re: Q: Is there a built-in way to read multiple file names?, Yuri Khan, 2024/07/16
- Re: Q: Is there a built-in way to read multiple file names?, Thierry Volpiatto, 2024/07/13
- Re: Q: Is there a built-in way to read multiple file names?,
Ihor Radchenko <=
- Re: Q: Is there a built-in way to read multiple file names?, Max Nikulin, 2024/07/08
- Re: Q: Is there a built-in way to read multiple file names?, Ihor Radchenko, 2024/07/13
- Re: Q: Is there a built-in way to read multiple file names?, Max Nikulin, 2024/07/14
- Re: Q: Is there a built-in way to read multiple file names?, Ihor Radchenko, 2024/07/14
- Re: Q: Is there a built-in way to read multiple file names?, Max Nikulin, 2024/07/15
Re: Q: Is there a built-in way to read multiple file names?, Rahguzar, 2024/07/13