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

Doc: why ag.vim vs ack.vim #9

Open
ku1ik opened this issue Apr 20, 2013 · 8 comments
Open

Doc: why ag.vim vs ack.vim #9

ku1ik opened this issue Apr 20, 2013 · 8 comments

Comments

@ku1ik
Copy link

ku1ik commented Apr 20, 2013

Hi,

I just noticed this project and I wondered if there's really a need for the fork.
To make ack.vim work with ag is just a matter of:

let g:ackprg = 'ag --nogroup --nocolor --column'

I use ag with ack.vim like that and it just works.

No hard feelings :)

@rking
Copy link
Owner

rking commented Apr 20, 2013

That does work, but:

  • I use a shared config wherever I have a $HOME. So when I happen to not-have af, I can fall back to :Ack
  • :Ag is 25% shorter than :Ack. =)
  • At this point, IMO the implementation is better for ag.vim, since it uses autoload. I should pull req ack.vim now that I've worked out the (tiny) hitches with this.

@rking
Copy link
Owner

rking commented Apr 20, 2013

Oh, I forgot the most significant factor in the decision to fork.

Because ack actually has several features ag doesn't, and probably won't (like searching by filetype).

I'll leave this issue open as a doc task.

@ku1ik
Copy link
Author

ku1ik commented Apr 20, 2013

Fair enough :)

losingkeys added a commit to losingkeys/ag.vim that referenced this issue Dec 6, 2013
DELETE THIS COMMIT

- separate content and formatting commits
- fix the following:
  - rking#10
  - rking#9
@schickling
Copy link

Correct me if I'm wrong but ag has filetype filtering by now, doesn't it?

@losingkeys
Copy link
Collaborator

What do you mean by filetype filtering?

@schickling
Copy link

For example searching just for html files by: ag div --html

@losingkeys
Copy link
Collaborator

Ohh, you can always do :Ag --html search dir, but I don't thing there's a special command like :AgFile (searches for files with ag -g)

On Jan 10, 2014, at 5:05 PM, Johannes Schickling notifications@github.com wrote:

For example searching just for html files by: ag div --html


Reply to this email directly or view it on GitHub.

Numkil referenced this issue in Numkil/ag.nvim Dec 18, 2015
resolves #9
@CarlosMorfin
Copy link

When I execute the command: Ack '=' the following line appears:
1 || /bin/bash/: ag: command not fount

In .vimrc I have set Ag behind the scene:
let g:ackprg = 'ag --nogroup --nocolor --column'

Can someone tell me how to fix this please

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

No branches or pull requests

5 participants