[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Q: read-file-name: Descend into subdirs while using a predicate?
From: |
T.V Raman |
Subject: |
Re: Q: read-file-name: Descend into subdirs while using a predicate? |
Date: |
Mon, 26 Sep 2022 10:05:49 -0700 |
Thanks Stefan for the clear answer, and happy to know I wasn't
overlooking something simple.
Also, on my laptop with an SSD, using
directory-files-recursively appears to be blazingly fast for
relatively large directories --- so that "heavy hammer" is a good
intermediate solution for my usecase which was to filter media files,
epub books and the like.
Stefan Monnier writes:
> T.V Raman [2022-09-26 07:45:08] wrote:
> > This feels like a puzzle that should have an easy answer, but I've not
> > found it:-)
>
> It's a long standing "todo" :-(
>
> Basically, we need to change the notion of "predicate" during completion
> so as to distinguish the "predicate to filter completions" from the
> "predicate to check if a value is fit to be returned from
> `completing-read`" (AKA the distinguish the predicate passed to
> `test-completion` from the predicate passed to `all/try/completions`).
>
> I've been toying with the idea of letting the predicate return a third
> option (beside nil and t) to say "it's acceptable for completions but
> not for `test-completion`".
>
>
> Stefan
--
Thanks,
--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1 🦮
--
Thanks,
--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1 🦮
--
Thanks,
--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1 🦮