atom-fuzzy-grep icon indicating copy to clipboard operation
atom-fuzzy-grep copied to clipboard

Allow to search files

Open rumpelsepp opened this issue 7 years ago • 1 comments

I would be nice to add a command that allows searching files. Internally git ls-files | ag foo or even ag -g FOO could be used to populate a list of files. I guess this would be a fast replacement for the integrated atom fuzzy finder, which is ... kind of slowish for large code bases.

rumpelsepp avatar Apr 21 '17 10:04 rumpelsepp

Was looking for the same thing. My quick-n-dirty workaround was to put a small bash script ("git-fuzzy-find") that utilizes fzf, like so:

#!/bin/bash
FILTERS=${@:1}
git ls-files | fzf -f "$FILTERS" | head -n 50 | awk '{print $1":0:\t"$1}'

make sure the bash script is findable through PATH.

…and change this package's settings to:

  • [x] Detect Git Project and use git grep

Git grep command string git-fuzzy-find

viddo avatar Jan 03 '18 18:01 viddo