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

Is it possible to load the cache according to the path ? #18

Closed
johnzeng opened this issue Aug 30, 2016 · 4 comments
Closed

Is it possible to load the cache according to the path ? #18

johnzeng opened this issue Aug 30, 2016 · 4 comments

Comments

@johnzeng
Copy link
Contributor

I may work on multiple projects in one day, I wanna use the mru feature but the cache is saved for all projects, is is possible to save the cache according to the current path?

Like, I have three projects under:
~/projA
~/projB
~/projC

I may save three cache file naming:
~/projA/.leaderf
~/projB/.leaderf
~/projC/.leaderf

Is it possible?

@Yggdroot
Copy link
Owner

Good point. I'll consider it.

@johnzeng
Copy link
Contributor Author

johnzeng commented Sep 1, 2016

I tried to set let g:Lf_CacheDiretory = '.' , it works, but it will create .LfCache file every where, maybe we can make a setting that if you use a relative path, leaderf will check the relative path, if it doesn't have .LfCache file, it will still use the default cache path.

Yggdroot added a commit that referenced this issue Dec 2, 2016
fix issue #18: Is it possible to load the cache according to the path ?
@Yggdroot
Copy link
Owner

Yggdroot commented Dec 2, 2016

Please use new added command LeaderfMruCwd.

@johnzeng
Copy link
Contributor Author

johnzeng commented Dec 2, 2016

great

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

2 participants