My CtrlP setup to use fd to scan files.
When I search vimrc in my home directory, those more unrelated results show up but not the actual dotfiles/vim/vimrc
> Downloads/Iosevka/Iosevka Term Bold Nerd Font Complete Mono.ttf
> Downloads/Iosevka/Iosevka Term Oblique Nerd Font Complete.ttf
> Downloads/Iosevka/Iosevka Medium Nerd Font Complete Mono.ttf
> Downloads/Iosevka/Iosevka Term Medium Nerd Font Complete.ttf
> Downloads/Iosevka/Iosevka Term Light Nerd Font Complete.ttf
Here is my setup
let g:ctrlp_map = '<leader>/'
let g:ctrlp_working_path_mode = 'ra'
let g:ctrlp_custom_ignore = {
\ 'dir': '\.git$\|\.hg$\|\.svn$\|Library$\|Applications$\|Movies$\|Pictures$\|Music$\|tmp$',
\ 'file': '\.zip$\|\.so$\|\.o$\|\.obj$\|\.class$\|\.DS_Store$'
\}
let g:ctrlp_match_window = 'bottom,order:btt,min:5,max:30,results:30'
if executable('fd')
let g:ctrlp_user_command = 'fd --type f --color never "" %s'
endif
let g:webdevicons_enable_ctrlp = 1
let g:ctrlp_by_filename = 0
let g:ctrlp_use_caching = 0
let g:ctrlp_mruf_max = 0
let g:ctrlp_max_files = 0
let g:ctrlp_max_depth = 20
let g:ctrlp_user_command_async = 1
If I do not use user command fd to scan, it works.
If I use fd but change settings on g:ctrlp_match_window to be bottom,order:btt,min:5,max:30,results:2000, it also works.
That's why I am wondering if there is a limit on how many scanned files CtrlP can read from an external scanner. Do you have any thought?
My
CtrlPsetup to usefdto scan files.When I search
vimrcin my home directory, those more unrelated results show up but not the actualdotfiles/vim/vimrcHere is my setup
If I do not use user command
fdto scan, it works.If I use
fdbut change settings ong:ctrlp_match_windowto bebottom,order:btt,min:5,max:30,results:2000, it also works.That's why I am wondering if there is a limit on how many scanned files
CtrlPcan read from an external scanner. Do you have any thought?