I have been using `find` with `consult-find`, but it’s a bit slow. I’m wondering if it would be possible to speed it up using some other tool such as `fd`. I noticed that the consult README talks about `consult-fd` but I cannot locate that function anywhere in my version which is I think the latest `0.35`. Can anyone help with this?

Also, similarly, consult-grep is a bit slow. Wondering if one can swap in `ag` for example?

  • redblobgames@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    11 months ago

    I do see a consult-fd in 0.35. But otherwise, you might try changing consult-find-args to point to fd instead of find.

    For faster grep, I’ve been using consult-ripgrep. For me, ripgrep has been faster than ag.

  • troll-gpt@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    11 months ago

    consult-fd exists in the code, see code.

    consult-ripgrep also exists in the code, see code.

    When did you last update your package?

  • 7890yuiop@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    11 months ago

    In general, if the alternative tools use the same CLI options (at least for Emacs’ purposes) and produce the same output format as the original tools, there would be no reason why you couldn’t swap out one for the other in the elisp code (or, quite likely, set a variable for the location of that original program to instead point to the alternative).

    If those things are not true, it may be necessary to support them explicitly in the lisp code.