Skip to content

helm-grep: run ag from the current project root #2731

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 21, 2025

Conversation

taquangtrung
Copy link
Contributor

Hi,

I added a new function to run helm-grep-ag from the current project root.
Could you help to review it?

Thanks!

@thierryvolpiatto
Copy link
Member

thierryvolpiatto commented Jul 14, 2025 via email

@taquangtrung
Copy link
Contributor Author

@thierryvolpiatto: Thanks for your comment.

One scenario that I often use is that when I am editing a source file deep in a folder-structured project (e.g., in Rust), and I know exactly that I want to search for a string in the entire project. For example, search for a string in a test file, or search for the function/variable names in other crates.

Calling this new function will save time, instead of having to C-s to go step by step to the parent folder.

@thierryvolpiatto
Copy link
Member

thierryvolpiatto commented Jul 15, 2025 via email

@taquangtrung
Copy link
Contributor Author

Oh, M-g in my config was rebound by other package, so I wasn't aware of such usage.

Still, calling helm-grep from helm-find-files is still a two-step action.

Will it make sense to expose these functions of Helm as interactive commands so that users can bind them directly?

@thierryvolpiatto
Copy link
Member

thierryvolpiatto commented Jul 21, 2025 via email

@thierryvolpiatto thierryvolpiatto merged commit 3f7624a into emacs-helm:master Jul 21, 2025
@thierryvolpiatto
Copy link
Member

Merged thanks.

thierryvolpiatto added a commit that referenced this pull request Jul 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants