yasuyk / helm-git-grep Goto Github PK
View Code? Open in Web Editor NEWhelm for git grep
License: GNU General Public License v3.0
helm for git grep
License: GNU General Public License v3.0
Hi there,
Seemingly at random, helm-git-grep-at-point stops working when the point is over a word and I want to grep for occurrences of that word. Sometimes it works, and sometimes it fails with "The mark is not set now, so there is no region"
. I can work around this by highlighting the word around the current point, but it tends to throw me off. Am I doing something wrong, or is this a bug?
This is a feature request.
After executing C-c g [keywords], I'd like to narrow the search result by file name or extension.
How about providing a command (bound C-c u for example) to switch the search-scope from files to grep-buffers?
C-c g [keywords] C-c u [filename] C-c u [keywords]
(I know I can save the grep result and search there, but doing it at once is far better!)
I'd like to exclude certain directories when searching.
Could you tag your current version with a melpa-stable compatible tag (see version-to-list) so it can be included in MELPA stable?
Hi,
running helm-git-grep on Windows I have to kill Emacs in the task manager. Do you know what could be going on? I have a grep command in my Path.
Thanks
Sorry could not paste the backtrace here, it to large.
Could you please give me some clue about use the (helm-attr 'exclude-file-pattern)
??
It is unbearably slow..
http://ergoemacs.org/emacs/modernization_emacs_grep_inconsistency.html
This guy says, spawning process for each keystroke will be horribly slow on windows..
I sometimes log in to my localhost through another user, with tramp.
For instance, (find-file "/su:user2@:/home/user2/")
.
Then I go a a git repository inside that folder, and want to use helm-git-grep there.
Currently it doesn't work: it tries to run git grep
with my main user, not with user2
. It should do the su user2
first and run git grep
as user2
.
Tested in:
;; Version: 0.10.1
;; Package-Version: 20170614.1411
GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw scroll bars) of 2022-10-28`
Hi. My helm-git-grep-autoloads.el fails with the following void-variable error:
Debugger entered--Lisp error: (void-variable helm-git-grep-with-exclude-file-pattern-obsolete-message)
(make-obsolete (quote helm-git-grep-with-exclude-file-pattern) helm-git-grep-with-exclude-file-pattern-obsolete-message "0.10.0")
eval-buffer(#<buffer *load*-779067> nil "***/.emacs.d/elpa/helm-git-grep-20161014.2248/helm-git-grep-autoloads.el" nil t) ; Reading at buffer position 1386
Context: #4 (comment)
Let's say I'm running git grep to find an import.
"import Foo"
And it matches
path/to/file:123 import "a/b/c/Foo";
In helm, if I do C-c C-k, it saves the selection to my kill ring. If I paste the selection with yank, it pastes:
path/to/file:123 import "a/b/c/Foo";
But what I want to paste is:
import "a/b/c/Foo";
Is there a way to have a workflow in helm git grep to copy only the match? Even better, we could copy the match, then insert it at the cursor.
I am versioning my npm directories inside node_modules. I have added node_modules to the grep-find-ignored-directories list, and helm-do-grep correctly does not return results from that directory. Helm-git-grep does however return results from node_modules. I would be happy to try to add this feature if desired.
StackOverflowの質問から来ましたが、こちらも聞きたいです。helm-git-grepは別なhelm-git-grep-history
がありますけど、sourceで使用されません。どうしてですか。
I use helm-git-grep frequently, this functionality can save so many COPY and PASTE times.
Unfortunately emacs-helm/helm@6193cc4 doesn't really say why. Hopefully dropping support from your package isn't more involved than what that commit did to helm-grep.el
.
Is there any option to do grep by specific file types? For example, if I want to search in html and js files, how can I do that? Appreciate any help.
I used to be able to save the grep buffer as hggrep
Then I could run compilation-next-error and emacs would go to the next file and open it in a buffer.
The workaround I have to do is run "compilation-mode" every time I save a hggrep buffer.
I looked at the .el file and it looks like helm-git-grep-mode is a compilation-mode:
(define-compilation-mode helm-git-grep-mode "Helm Git Grep"
So I'm confused at what I'm missing here.
I have boost in submodules and therefore searching for anything in the code base itself takes too much time.
Would be great to have a variable to turn off searching in submodules.
Do I understand correctly that git-grep finds expressions across all versions and commits within a git repo?
This is a feature I have been looking for. For instance, in a previous version of my document tracked by GIT I had a sentence I want to recover, not existing in muy current version. How would I go about finding it without having to revert to each previous commit? Is this the solution?
Hi, thank you for this great package.
I have found that when I select a file in helm-git-grep
, it always opens a new buffer something like mouse1:.. mouse2:.. mouse3: ...
instead of the selected file, when helm-allow-mouse
is t
.
I just found this because recently helm changed the default value of helm-allow-mouse
to t
.
So, helm-git-grep
will work fine when helm-allow-mouse
is set back to nil
, but I believe fix is a necessary.
I hope this helps anyone who has had the same experience due to the recent helm update.
Thanks.
I'd like to exclude bower_components
and node_modules
when git-greping.
Is it possible that helm-grep-do-git-grep shows results in a minibuffer, below the current window, rather than in a new one or replace the current? Thanks!
emacs -q
to start emacs.(require 'helm-git-grep)
, will result idle.before, I use 24.3, it work fine.
If I'm in one git project, for example with name "foo", save a helm grep buffer,
the default-directory is "path/to/foo"
But if I go to a different project: 'bar'.
Then the default directory is still "path/to/foo"
If I kill the buffer, and try again, it still remains.
This is annoying when using compilation-mode and trying to jump to the grep file since the directory is wrong.
Does anyone know if its possible to mark multiple files and open them with helm-git-grep
?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.