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

When the current dir is no .git or other project... #77

Closed
stevedsun opened this issue Oct 16, 2015 · 5 comments
Closed

When the current dir is no .git or other project... #77

stevedsun opened this issue Oct 16, 2015 · 5 comments
Labels

Comments

@stevedsun
Copy link

I have set this:
let g:ctrlsf_default_root = 'project'

But when the current dir is not project, ctrlsf.vim will throw an error.
I think it could be switched default root more automaticly :)

@dyng
Copy link
Owner

dyng commented Oct 17, 2015

Could you post the error message about what happened when the project root was not found? Turn on the debug mode by let g:ctrlsf_debug_mode = 1 to get more information.

CtrlSF should search current file if no project root is found, if that is not the case, maybe it's a bug.

@stevedsun
Copy link
Author

error_msg_01
error_msg_02

When search "sudo" at the home dir in vimrc file.

@stevedsun
Copy link
Author

My OS is Linux mint 17.02, gvim 7.4

@dyng dyng added the bug label Oct 19, 2015
@dyng
Copy link
Owner

dyng commented Oct 19, 2015

Well, it's a problem about output from Ack if only a file is specified, I need some time to fix it.

Before that, you can switch to Ag by let g:ctrlsf_ack = 'ag', to work around it.

@dyng dyng mentioned this issue Nov 20, 2015
Merged
@dyng
Copy link
Owner

dyng commented Nov 20, 2015

Fixed in V1.4 and merged, thank you for your bug report!

@dyng dyng closed this as completed Nov 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants