emacsorphanage / helm-ag

The silver searcher with helm interface
492 stars 76 forks source link

helm-do-grep-ag vs helm-do-ag #374

Open AtomicNess123 opened 3 years ago

AtomicNess123 commented 3 years ago

Basically, what are the differences? I searched in the manual and couldn't find. I am not a The Silver Searcher user. Thanks!

syohex commented 3 years ago

They are almost same. helm-do-ag was implemented referencing to helm-do-grep which is original version of helm-do-grep-ag.

AtomicNess123 commented 3 years ago

Thanks. Rather than knowing they are almost the same, it would be more informative what the differences are. Thanks!

AtomicNess123 commented 3 years ago

For instance, can I specify the list of directories where I always want to search in advance?

AtomicNess123 commented 3 years ago

Follow-up: in the main page it says "helm-do-ag: Search with ag like helm-do-grep-ag". What does this mean? That is why it is important to know the differences between these functions. For instance, are they working under the same base function?

syohex commented 3 years ago

For instance, are they working under the same base function?

Maybe no.

As I said I implemented helm-do-ag referencing to helm-do-grep. In those days, helm had not implemented helm-do-grep-ag, there were only helm-do-grep (and helm removed helm-do-grep after implementing helm-do-grep-ag). I only referred its behavior, not its implementation.

I don't know latest helm-do-grep-ag well. I suppose you can use which command you like.