.dir-locals.el for project specific consult commands #844
-
I haven't found this in the README nor in the issues, if that's something you want to document, I use something like this for consult-find :
For ripgrep and fd, we have .rgignore and .fdignore, but I couldn't find something similar for find. You can close the issue if you do not want to document this. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi Nicolas, thanks for the suggestion! I have a bit of a hard time to decode what you are doing exactly here and what you want to achieve. I'd appreciate if you add a few more explanations. Do you think this should be documented in the README or the wiki? Peripheral/special configurations can also be documented in the wiki. Thanks again! |
Beta Was this translation helpful? Give feedback.
-
Rereading the issue again, I wonder why you are using The idea of (defvar my-consult-find-auxillary-args nil)
(setq consult-find-args
'("find . -not ( -wholename */.* -prune )" my-consult-find-auxillary-args)) Then you can override |
Beta Was this translation helpful? Give feedback.
Rereading the issue again, I wonder why you are using
eval
instead of setting theconsult-find-args
directly via the.dir-locals.el
. I think this is what confused me when I took a look at this, since it may be more complicated than necessary. You probably do this such that you can adjust theconsult-find-args
and don't have to override them completely.The idea of
consult-find-args
and the other similar variables is that you can build up the command dynamically. Your use case may be better configured as follows:Then you can override
my-consult…