kien / ctrlp.vim

Fuzzy file, buffer, mru, tag, etc finder.
kien.github.com/ctrlp.vim
7.26k stars 676 forks source link

File not found until results increased #714

Open jwanja opened 8 years ago

jwanja commented 8 years ago

In my project I have a few files named the same thing. If I don't have the results increased ctrlp doesn't display all of the files named the same:

ucp/lib/tda/src/component/ioa.c                                                                                                                                                                                                                                                                             1129,1         Bot
> usic/cee/arch/unit_test/ttime_no_sanity_test.c
> ucp/manager/biosupgrade/biosupgrade.service
> usic/cee/arch/unit_test/ttime_no_sanity.c
> ucp/driver/iofpga/iofpga_main.c
> ucp/driver/uioatdma/uioatdma.c
> ucp/util/ioadbg/ioadbg.c
> ucp/manager/extent/iotask.c
> ucp/lib/driver_api/dundee/ioa.c
> ucp/lib/driver_api/pytoc/ioa.c
> ucp/util/investigator/ioa.c
 prt  file  <mru>={ files }=<buf> <->                                                                                                                                                                                                                                                        /Users/joe.wanja/projects/dynamo
>d> ioa.c_

If I add this line to my .vimrc

132 let g:ctrlp_match_window = 'max:20,results:20'

I get the following results

ucp/lib/tda/src/component/ioa.c                                                                                                                                                                                                                                                                             1129,1         Bot
> usic/doc/internal/Fibre_Channel/Fibre_Channel_Read_4k_Operation_Overview.docx
> usic/doc/internal/Infiniband/ib381_theory_of_operation.doc
> usic/cee/arch/unit_test/ttime_no_sanity_test.c
> usic/cee/arch/unit_test/ttime_too_fast_test.c
> ucp/manager/biosupgrade/biosupgrade.service
> usic/cee/arch/unit_test/ttime_no_sanity.c
> usic/cee/arch/unit_test/ttime_too_fast.c
> ucp/driver/iofpga/iofpga_main.c
> ucp/driver/uioatdma/uioatdma.c
> ucp/lib/tda/python/component/io_card.c
> ucp/lib/tda/src/component/io_card.c
> ucp/util/ioadbg/ioadbg.c
> ucp/manager/extent/iotask.c
> ucp/lib/driver_api/dundee/ioa.c
> ucp/lib/driver_api/pytoc/ioa.c
> ucp/lib/tda/src/bus/ioa.c
> ucp/util/investigator/ioa.c
> ucp/lib/tda/python/component/ioa.c
 prt  file  <mru>={ files }=<buf> <->                                                                                                                                                                                                                                                        /Users/joe.wanja/projects/dynamo
>d> ioa.c_

Is there an option I'm missing that limits the number of files with the same name?