Fzf: FZF with Ag not ignoring node_modules

Created on 28 Feb 2019  Â·  2Comments  Â·  Source: junegunn/fzf

  • Category

    • [x] fzf binary

    • [ ] fzf-tmux script

    • [ ] Key bindings

    • [ ] Completion

    • [ ] Vim

    • [ ] Neovim

    • [ ] Etc.

  • OS

    • [ ] Linux

    • [x] Mac OS X

    • [ ] Windows

    • [ ] Windows Subsystem for Linux

    • [ ] Etc.

  • Shell

    • [x] bash

    • [ ] zsh

    • [ ] fish

fzf with ag is not ignoring my node_modules directories.

.bash_profile

# fzf
# to completely uninstall, use /usr/local/opt/fzf/uninstall
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
export FZF_DEFAULT_COMMAND='ag --hidden --ignore .git --ignore node_modules --ignore Library -g ""'

output of fzf

screen shot 2019-02-28 at 9 50 18 am

question

Most helpful comment

So how do I ignore directories?

On Tue, Mar 5, 2019, 4:04 AM Junegunn Choi notifications@github.com wrote:

Fuzzy completion and CTRL-T do not use $FZF_DEFAULT_COMMAND for various
reasons. You have to separately configure them.

https://github.com/junegunn/fzf#key-bindings-for-command-line
https://github.com/junegunn/fzf#fuzzy-completion-for-bash-and-zsh

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/junegunn/fzf/issues/1511#issuecomment-469598056, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACiUlr0tlJDzjPEzoGOcnP-jPmKfpsfgks5vTjMTgaJpZM4bW_g5
.

All 2 comments

Fuzzy completion and CTRL-T do not use $FZF_DEFAULT_COMMAND for various reasons. You have to separately configure them.

https://github.com/junegunn/fzf#key-bindings-for-command-line
https://github.com/junegunn/fzf#fuzzy-completion-for-bash-and-zsh

So how do I ignore directories?

On Tue, Mar 5, 2019, 4:04 AM Junegunn Choi notifications@github.com wrote:

Fuzzy completion and CTRL-T do not use $FZF_DEFAULT_COMMAND for various
reasons. You have to separately configure them.

https://github.com/junegunn/fzf#key-bindings-for-command-line
https://github.com/junegunn/fzf#fuzzy-completion-for-bash-and-zsh

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/junegunn/fzf/issues/1511#issuecomment-469598056, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACiUlr0tlJDzjPEzoGOcnP-jPmKfpsfgks5vTjMTgaJpZM4bW_g5
.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alistaircolling picture alistaircolling  Â·  3Comments

jan-warchol picture jan-warchol  Â·  3Comments

aleclarson picture aleclarson  Â·  3Comments

erusev picture erusev  Â·  3Comments

asilvadesigns picture asilvadesigns  Â·  3Comments