Add customizable option fzf/grep-command for the default grep command. Default is grep -nrH (same as before)
Slight refactor of fzf-grep
Use fzf/start instead of fzf-with-command now that fzf/start supports commands
Use fzf/grep-command to allow user customization
Use fzf/resolve-directory instead of default-directory. This will function the same as it is currently except if in a projectile project, in which case the root of the project is used.
Add fzf-grep-dwim to lookup thing-at-point
I also added a section to the README showing customization options.
Changes
fzf/grep-command
for the defaultgrep
command. Default isgrep -nrH
(same as before)fzf-grep
fzf/start
instead offzf-with-command
now thatfzf/start
supports commandsfzf/grep-command
to allow user customizationfzf/resolve-directory
instead ofdefault-directory
. This will function the same as it is currently except if in aprojectile
project, in which case the root of the project is used.fzf-grep-dwim
to lookupthing-at-point
I also added a section to the README showing customization options.