Skip to content
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

Make counsel-ag extensible #576

merged 1 commit into from Jul 9, 2016


Copy link

@kaushalmodi kaushalmodi commented Jul 8, 2016


My motivation for this PR is to allow counsel-ag derived more counsel-* commands.

Here's an example which works after this PR is applied:

(defun counsel-news (&optional initial-input)
    "Search for a pattern in NEWS files using ag.
INITIAL-INPUT can be given as the initial minibuffer input."
    (counsel-ag initial-input data-directory " -G '/NEWS'" "Search NEWS"))

Here's a little history on that

This is what running counsel-news looks like:


@abo-abo abo-abo merged commit e38b23c into abo-abo:master Jul 9, 2016
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Copy link

@abo-abo abo-abo commented Jul 9, 2016

Looks good, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants