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
merged 1 commit into from Jul 9, 2016

Conversation

Projects
None yet
2 participants
@kaushalmodi
Contributor

kaushalmodi commented Jul 8, 2016

Hi,

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."
    (interactive)
    (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:

image

@abo-abo abo-abo merged commit e38b23c into abo-abo:master Jul 9, 2016

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@abo-abo

This comment has been minimized.

Owner

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