Skip to content

Conversation

@cassiobotaro
Copy link
Member

Use fzf instead of ctrlp plugin. fzf is faster and has more resources.
I choose --bin option to avoid system replaces(like ctrl+r).
Another decision is to not replace grep.vim as proposed in #244 because it only works if silver_archer is installed. If we found a solution for that, we can do the replacement.

let g:ctrlp_custom_ignore = '\v[\/](node_modules|target|dist)|(\.(swp|tox|ico|git|hg|svn))$'
let g:ctrlp_user_command = "find %s -type f | grep -Ev '"+ g:ctrlp_custom_ignore +"'"
let g:ctrlp_use_caching = 1
let $FZF_DEFAULT_COMMAND = "find * -path '*/\.*' -prune -o -path 'node_modules/**' -prune -o -path 'target/**' -prune -o -path 'dist/**' -prune -o -type f -print -o -type l -print 2> /dev/null"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does not ignore:

  • .git
  • .hg
  • .svn
  • .ico
  • .swp

Copy link
Member Author

@cassiobotaro cassiobotaro Mar 26, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-path '*/.*' -prune -o

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

obs: this command looks weird, but is the default command only changed to include dist,target and node_modules ignore

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry

@lerrua lerrua merged commit 5c651f0 into master Mar 27, 2017
@cassiobotaro cassiobotaro deleted the fzf branch March 27, 2017 01:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants