Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wildignore support #10

Closed
yacut opened this issue Jan 4, 2017 · 2 comments
Closed

wildignore support #10

yacut opened this issue Jan 4, 2017 · 2 comments

Comments

@yacut
Copy link

yacut commented Jan 4, 2017

I would like to set wildignore in init.vim or .vimrc and does not have it in the search results.
For example:

" ignore npm packages
set wildignore+=**/node_modules/**
@brooth
Copy link
Owner

brooth commented Jan 9, 2017

I've got to say that it's quite complex task. It works out of the box for default (vimgrep) source, but to transform wildignore to ag/ack's pattern is a tricky task. I'll try to solve it in beta 3.
Now there are 2 options:

  1. command parameter:
:F foo \.js --source=ag --ignore=node_modules
  1. vimrc:
let g:far#sources = {
    \   'ag': {
    \       'args': {
    \           'cmd': ['ag', '--nogroup', '--column', '--nocolor', '--silent',
    \                   '--max-count={limit}', '{pattern}',
    \                   '--file-search-regex={file_mask}',
    \                   '--ignore=node_modules']
    \       }}}

@yacut
Copy link
Author

yacut commented Jan 16, 2017

Thanks, it helps.

@yacut yacut closed this as completed Jan 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants