tacahiroy / ctrlp-funky

A super simple function navigator for ctrlp.vim
http://www.vim.org/scripts/script.php?script_id=4592
MIT License
396 stars 71 forks source link

Search entire project directory #39

Open ntpeters opened 10 years ago

ntpeters commented 10 years ago

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.

tacahiroy commented 10 years ago

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

neitanod commented 10 years ago

I second that request, it would be awesome.

tacahiroy commented 10 years ago

WIP

cj commented 9 years ago

This feature would be awesome!

tacahiroy commented 9 years ago

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.

robertg commented 9 years ago

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

tacahiroy commented 9 years ago

@robertg you mean multi-buffer stuff?

robertg commented 9 years ago

@tacahiroy Oops, was referencing your first comment.

tacahiroy commented 9 years ago

ah - yeah

tacahiroy commented 9 years ago

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.

idr4n commented 8 years ago

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?

madnight commented 7 years ago

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 : )

cangermueller commented 5 years ago

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?