Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search entire project directory #39

Open
ntpeters opened this issue Jun 22, 2014 · 13 comments
Open

Search entire project directory #39

ntpeters opened this issue Jun 22, 2014 · 13 comments

Comments

@ntpeters
Copy link

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
Copy link
Owner

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

@neitanod
Copy link

neitanod commented Aug 8, 2014

I second that request, it would be awesome.

@tacahiroy
Copy link
Owner

WIP

@cj
Copy link

cj commented Nov 5, 2014

This feature would be awesome!

@tacahiroy
Copy link
Owner

bb87f80
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
Copy link

robertg commented Feb 20, 2015

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

@tacahiroy
Copy link
Owner

@robertg you mean multi-buffer stuff?

@robertg
Copy link

robertg commented Feb 21, 2015

@tacahiroy Oops, was referencing your first comment.

@tacahiroy
Copy link
Owner

ah - yeah

tacahiroy added a commit that referenced this issue Oct 13, 2015
This is the initial implementation, so should be refactored
@tacahiroy
Copy link
Owner

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
Copy link

idr4n commented Jul 14, 2016

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
Copy link

madnight commented Mar 24, 2017

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
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants