ctrlp-funky icon indicating copy to clipboard operation
ctrlp-funky copied to clipboard

Search entire project directory

Open ntpeters opened this issue 11 years ago • 13 comments

I frequently run vim from the root of a project and use CtrlP to navigate to files anywhere else in the project. It would be cool if there were a feature for funky that, when searching for an existing function definition, could also search the other files in the project directory. This would be very useful for immediately jumping to a function definition in another file in a project.

This would be another case where caching, as mentioned in #27, would come in quite handy. Create a cache of a directory/subdirectories, and simply maintain it for updated/new files.

ntpeters avatar Jun 22 '14 22:06 ntpeters

interesting, I'm concerning about latency though. I will think about that if I have time.

tacahiroy avatar Jul 02 '14 14:07 tacahiroy

I second that request, it would be awesome.

neitanod avatar Aug 08 '14 17:08 neitanod

WIP

tacahiroy avatar Sep 10 '14 02:09 tacahiroy

This feature would be awesome!

cj avatar Nov 05 '14 00:11 cj

bb87f805e4b66f I've just pushed changes adding multiple buffer support, this is minimum implementation though.

You may add the config below to enable this feature:

let g:ctrlp_funky_multi_buffers = 1

This is not what you guys need, but better than nothing.

tacahiroy avatar Feb 08 '15 14:02 tacahiroy

@tacahiroy There will be latency; precisely why it won't be a default option.

robertg avatar Feb 20 '15 18:02 robertg

@robertg you mean multi-buffer stuff?

tacahiroy avatar Feb 21 '15 04:02 tacahiroy

@tacahiroy Oops, was referencing your first comment.

robertg avatar Feb 21 '15 05:02 robertg

ah - yeah

tacahiroy avatar Feb 21 '15 05:02 tacahiroy

I've implemented "Search project directory" feature in a branch below, am not sure you guys are still using ctrlp-funky though. https://github.com/tacahiroy/ctrlp-funky/tree/add-project-search-mode

Since the implementation is still underway, it might be unstable.

tacahiroy avatar Oct 13 '15 17:10 tacahiroy

Hi, I am trying to use the let g:ctrlp_funky_multi_buffers = 1 option but is not working for me (I'm using Mac, in either terminal vim or Macvim). It still only shows the function definitions of the active buffer, not from other buffer.

This is my setup for ctrlp and ctrlp-funky in my vimrc:

" Settings for ctrlp
let g:ctrlp_working_path_mode = 'c'
let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""'
let g:ctrlp_extensions = ['line']
let g:ctrlp_match_window = 'max:20'

" Settings for Ctrlp Funky
let g:ctrlp_funky_syntax_highlight = 1
let g:ctrlp_funky_multi_buffers = 1
nnoremap <Leader>fu :CtrlPFunky<Cr>
nnoremap <Leader>fU :execute 'CtrlPFunky ' . expand('<cword>')<Cr>

Any ideas why this my not be working for me?

idr4n avatar Jul 14 '16 20:07 idr4n

Hi please dont mix buffer and project search feature requests here. Its 2017 and i still want that project search feature (will be fast enough together with ripgrep) as ctags replacement. Maybe you could revive your feature branch, rebase it and make this option available : )

madnight avatar Mar 24 '17 01:03 madnight

Extending ctrlp-funky to search functions in different files would be great! I tried using :CtrlPFunkyMulti, which, however, seems to be doing the same as CtrlPFunk. Are there any workarounds or alternative plugins?

cangermueller avatar Oct 29 '18 03:10 cangermueller