Closed f0s3 closed 4 years ago
You can run :Rooter
to manually change the current working directory.
To toggle between automatic and manual, use :RooterToggle
. To make Rooter start in manual mode, add this to your vimrc:
let g:rooter_manual_only = 1
I don't quite understand how these commands may help me change my project root. Could you elaborate more?
Hmm, I'm not sure what you're asking. I thought you were asking how to trigger Rooter to change directory. But are you actually asking how to specify which directory it changes to?
This will make Rooter treat the src
folder as a project root directory:
let g:rooter_patterns = ['=src']
Yes, that's what I was asking for. Sorry for writing in such a way that you didn't understand the first time you read it. Thank you for your plugin and your help.
Sorry for writing in such a way that you didn't understand the first time you read it.
No need to apologise :)
I'm glad we found a solution.
I would like to have an option to manually change the cwd. Something like
RooterChangeDir
or whatever you'd like. I find it useful to be able to setsrc
folder in java projects so that fzf looks into that only, and not on the files above it. I haven't found anything like this in the documentation and thought this is a nice feature to have. Nice plugin btw, like it a lot :smiley: