Giter Club home page Giter Club logo

helm-git-grep's People

Contributors

c41x avatar cybershadow avatar dfboyd avatar joeheyming avatar ksjogo avatar mechairoi avatar pythonnut avatar rexim avatar stsquad avatar yasuyk avatar zw963 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

helm-git-grep's Issues

Spurious "the mark is not set now, so there is no region" errors

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?

grep the output of helm-git-grep ?

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!)

helm-git-grep locks emacs

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

Support tramp connections (e.g. log in with another user and run `git grep` though it)

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`

void-variable in autoloads

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

Question about helm

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.

Defer to grep-find-ignored-directories for additional ignoring

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.

Grep by specific file types

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.

hggrep buffer used to highlight like compilation mode

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.

Purpose of git-grep

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?

Not working properly when helm-allow-mouse is t

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.

Results in minibuffer

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!

Save results in grep buffer gets messed up between git projects

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.