How to pass pathspec to consult-git-grep? #1298
Unanswered
iostapyshyn
asked this question in
Q&A
Replies: 2 comments 1 reply
-
|
Why is the ability lost? cc @jdtsmith |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I think the problem is if Maybe (consult--command-split "abc -- defun") ;; assume abc is an option, even though it doesn't start with `-'
(consult--command-split "-- *.txt -- defun") ;; assume `-- *.txt' is an option, since it's before the final `--'I.e. alter it to mean "Input after the final two standalone dashes is treated as search pattern, with prior input the options". |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
with this recent change in 3.3 regarding grep options, the ability to pass the
pathspecargument toconsult-git-greplike before#hello -- :!*.txt(search hello in all non-txt files) seems to have been lost due to special treatment of double dash. However, using the prefix argument (C-u M-x consult-git-grep RET) seems to still work.Is there a nonobvious way to pass pathspec directly in the prompt like before?

Beta Was this translation helpful? Give feedback.
All reactions