Open Chobbes opened 2 years ago
Apparently there is already an option for this within helm-ag
itself...
(setq helm-ag-insert-at-point 'symbol)
That said, I do wonder if it should follow helm-projectile-set-input-automatically
. The documentation for helm-projectile-set-input-automatically
does mention this:
Applies to ‘helm-projectile-grep’ and ‘helm-projectile-ack’ only. If the ‘helm-ag’ package is installed, then automatic input behavior for ‘helm-projectile-ag’ can be customized using ‘helm-ag-insert-at-point’.
So maybe this has all been considered before... Still, it seems an odd default for helm-projectile-ag
. Thoughts?
…ectile-grep.
When using
helm-projectile-grep
the search term will automatically be populated with the symbol at point, or the selected region. These changes makehelm-projectile-ag
do the same thing.Before submitting a PR make sure the following things have been done (and denote this by checking the relevant checkboxes):
M-x checkdoc
warningsThanks!