Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add separate caches for repo branches
For VCSes that checkout different branches in the same directory, like git and hg, it can be nice to have separate caches for different branches so you don't have to do a full cache refresh everytime you change branches in order to find the files that are in only one of the branches. I have always got around the issue by using a long-standing vim process for each branch and using the buffer search to open windows for the new files in the two branches, but that's obviously very specific to my personal workflow. Note that the branch-specific caches are only used if the ProbeFindFileInRepo command is used. So, ProbeFindFile and ProbeFindFileInRepo might use different caches, but I don't think it'll be a problem. In the interests of simplicity I considered having this off by default, but I'm making it the default since I think it'll will be more intuitive for most people.
- Loading branch information
Showing
4 changed files
with
79 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -133,6 +133,11 @@ OPTIONS *probe-options* | |
Maximum number of files to scan. | ||
Default: (number) 100000 | ||
|
||
|g:probe_cache_repo_branches| *g:probe_cache_repo_branches* | ||
If true, maintain separate caches for different branches of a repository. | ||
Works for git and mercurial so far. | ||
Default: (boolean) 0 | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
torbiak
Author
Owner
|
||
|
||
|g:probe_max_height| *g:probe_max_height* | ||
Maximum height of the match window. | ||
Default: (number) 10 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
It looks like this is actually defaulting to '1'...