Replies: 1 comment 1 reply
-
"Billy.Zheng" ***@***.***> writes:
I am using helm-grep-do-git-grep for search files in git repo.
Assume, i binding this function to M-r
(global-set-key [(meta r)] 'helm-grep-do-git-grep)
So, when i pressing M-r, it will search result in current default-directory.
i consider this is ok as a default, but, if i can't find it, i want to more easy
way to fallback to search on whole repository.
C-h k M-r
=>
[...]
(helm-grep-do-git-grep ARG)
Preconfigured `helm' for git-grepping `default-directory'.
With a prefix arg ARG git-grep the whole repository.
Also you can run helm-find-files to navigate anywhere and launch any
helm grep command from the directory you navigate to.
…--
Thierry
|
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
-
I am using
helm-grep-do-git-grep
for search files in git repo.Assume, i binding this function to M-r
(global-set-key [(meta r)] 'helm-grep-do-git-grep)
So, when i pressing
M-r
, it will search result in current default-directory.i consider this is ok as a default, but, if i can't find it, i want to more easy
way to fallback to search on whole repository.
so, maybe, if there is a function,
helm-grep-do-git-grep-whole-repository-within-helm
i can binding to helm-mode-map, use same keybinding, e.g.
M-r
so, this is very conveniently.
M-r once => search on default-directoy
if not found, M-r again, search on whole repository.
If there exits a function like this? Thank you.
Beta Was this translation helpful? Give feedback.
All reactions