bling / fzf.el

A front-end for fzf
GNU General Public License v3.0
364 stars 49 forks source link

how to ignore specific folders? #40

Open dmitry-saritasa opened 6 years ago

dmitry-saritasa commented 6 years ago

hi Guys,

for example I want to avoid scanning node_modules, any ideas?

tttuuu888 commented 5 years ago
  1. use fzf-git-files. Unless you committed node_modules, the folder would be ignored.
  2. If you use ag, below code would work:
    (defun fzf-node-project ()
    (interactive)
    (let ((process-environment
         (cons (concat "FZF_DEFAULT_COMMAND=ag -g \"\" --ignore node_modules")
               process-environment)))
    (fzf/start default-directory)))

It has been almost 7 months but hope this would be helpful.