Don't set prefix-arg when delegating to ivy/helm from +default/search-project

The prefix arg for +default/search-project is intended to enable the
user to pick search location, however when it propagates to the ivy
search function it turns on the "search ignored files" functionality,
which us typically not intended and, furthermore, can be (if desired)
turned on simply by typing the search command in, for exampe,
counsel-rg's case as `-uu -- mysearchterm`
This commit is contained in:
Leo Alekseyev 2020-06-10 03:50:25 -07:00
parent 7ac688dcd6
commit 8dd55901c3

View file

@ -27,6 +27,7 @@ If prefix ARG is set, prompt for a known project to search from."
(interactive "P")
(let* ((projectile-project-root nil)
(disabled-command-function nil)
(current-prefix-arg nil)
(default-directory
(if arg
(if-let (projects (projectile-relevant-known-projects))