Closed liuyinz closed 2 years ago
There are two ways. You can either use consult--read
with async (see for example consult-ripgrep, consult-find, consult-notmuch, consult-spotify, affe, ...).
Alternatively you could rely on the (non-Consult!) synchronous completion-table-dynamic
(see https://github.com/minad/vertico/#completion-table-dynamic). See also @alphapapa's org-ql-find
which uses a dynamic completion function https://github.com/alphapapa/org-ql/commit/d0acc8cbba63ef50f1c0ecffdf1770792b13592d. See also the discussion and the issue there.
@minad I am a fan of counsel-jq, how should I implement
consult-jq
with mechanism like:dynamic-collection
in consult? Using async or something else, no idea still. Any advice, thanks!